chiark / gitweb /
Merge patches from Hleb Valoshka
[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   --with-udevrulesdir=/lib/udev/rules.d \
15   --disable-lto \
16   --disable-tests
17
18 override_dh_autoreconf:
19         dh_autoreconf ./autogen.sh
20
21 override_dh_auto_configure:
22         dh_auto_configure --builddirectory=build \
23     -- $(CONFFLAGS)
24
25 override_dh_missing:
26         dh_missing --list-missing
27
28 %:
29         dh $@ --builddirectory=build --with autoreconf --parallel