Adding debian version 0.4.1-1 (FIXME).
[debian/lxdm.git] / debian / rules
1 #!/usr/bin/make -f
2
3 LDFLAGS+=-Wl,-z,defs -Wl,--as-needed
4
5 # Rename config file
6 config_file = /etc/lxdm/default.conf
7 CFLAGS+=-DCONFIG_FILE=\\\"$(config_file)\\\"
8
9 %:
10         dh ${@}
11
12 override_dh_auto_configure:
13         dh_auto_configure -- LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" \
14                 --sysconfdir=/etc \
15                 --libexecdir=/usr/lib/lxdm \
16                 --enable-debug
17
18 override_dh_auto_test:
19         # disabled
20
21 override_dh_install:
22         dh_install
23
24         mkdir -p debian/lxdm/etc/insserv.conf.d
25         cp debian/lxdm.insserv debian/lxdm/etc/insserv.conf.d/
26         mv debian/lxdm/etc/insserv.conf.d/lxdm.insserv debian/lxdm/etc/insserv.conf.d/lxdm
27
28 override_dh_installinit:
29         dh_installinit --no-start