5d55133edb2ae9d6c86b376b0d1514be3e4578ca
[debian/lxdm.git] / Makefile.am
1 NULL =
2 SUBDIRS= \
3         src \
4         po \
5         pam \
6         data \
7         $(NULL)
8
9 lxdm_confdir = /etc/lxdm
10 lxdm_conf_DATA = \
11         data/lxdm.conf \
12         data/Xsession \
13         $(NULL)
14
15 lxdm_pamdir = /etc/pam.d
16 lxdm_pam_DATA = \
17         pam/lxdm \
18         $(NULL)
19
20 lxdm_bindir = /usr/bin
21 lxdm_bin_DATA = \
22         data/lxdm
23
24 lxdmdir = $(datadir)/lxdm
25 lxdm_DATA = \
26         data/lxdm.glade \
27         $(NULL)
28
29 install-data-hook:
30         chmod +x $(DESTDIR)/etc/lxdm/Xsession
31         chmod +x $(DESTDIR)/usr/bin/lxdm
32
33 rpm: dist @PACKAGE_NAME@.spec
34         rpmbuild -bb \
35         --define "_sourcedir `pwd`" \
36         --define "_builddir `pwd`" \
37         --define "_srcrpmdir `pwd`" \
38         --define "_rpmdir `pwd`" \
39         --define "_specdir `pwd`" \
40         @PACKAGE_NAME@.spec
41
42 EXTRA_DIST= \
43         ChangeLog AUTHORS README NEWS \
44         INSTALL COPYING gpl-2.0.txt lgpl-2.1.txt