chiark / gitweb /
Fix several issues found by review
[elogind.git] / debian / rules
1 #! /usr/bin/make -f
2
3 # The options have been chooses as follows:
4 # - manually set pamlibdir because we'Re installing in /usr by default but 
5 #   pam libs must go to /lib/*/security
6 # - Disable lto because this makes the build fail with static library 
7 #   warnings and with  linking errors. (It seems taht instead of ar/ld 
8 #   gcc-ar and gcc should be used)
9 # - tests disabled beacuase some of the tests seem to require elogind running.
10 #   Need to sort out which tests could be run
11
12 CONFFLAGS = \
13   --with-pamlibdir=/lib/$(DEB_HOST_MULTIARCH)/security \
14   --disable-lto \
15   --disable-tests
16
17 #autoreconf:
18 #       ./autogen.sh
19         
20 #override_dh_autoreconf:
21 #       dh_autoreconf debian/rules -- autoreconf
22
23 override_dh_auto_configure:
24         dh_auto_configure --builddirectory=build \
25     -- $(CONFFLAGS)
26
27 %:
28         dh $@ --builddirectory=build --with autoreconf --parallel