Mise à jour des exclusions.
[auf-git-etc.git] / Makefile
1 PACKAGE = $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
2 VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
3 DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
4
5 all: build
6
7 build:
8
9 install: build
10 install -o root -g root -m 0755 -d $(DESTDIR)/usr/sbin
11 install -o root -g root -m 0755 auf-git-etc-status $(DESTDIR)/usr/sbin/
12 install -o root -g root -m 0755 -d $(DESTDIR)/usr/lib/$(PACKAGE)
13 install -o root -g root -m 0755 cron.sh $(DESTDIR)/usr/lib/$(PACKAGE)/
14 install -o root -g root -m 0755 -d $(DESTDIR)/etc/profile.d
15 install -o root -g root -m 0644 profile.sh $(DESTDIR)/etc/profile.d/$(PACKAGE).sh
16 install -o root -g root -m 0755 -d $(DESTDIR)/etc/sudoers.d
17 install -o root -g root -m 0440 sudoers.d $(DESTDIR)/etc/sudoers.d/$(PACKAGE)
18 install -o root -g root -m 0750 -d $(DESTDIR)/etc/$(PACKAGE)
19 cp -a etc/* $(DESTDIR)/etc/$(PACKAGE)/
20
21 clean:
22
23 deb:
24 debuild -I.git -I*.ex -us -uc -b && \
25 echo -e "\n\n==> Lancer \"sudo debi\" pour tester l'installation.\n"
26
27 release:
28 debuild -I.git -I*.ex -us -uc -tc -sa && debrelease --dput wheezy-test