Mise à jour des exclusions.
[auf-git-etc.git] / Makefile
CommitLineData
14c34385 1PACKAGE = $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
96eb6687 2VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
539b9d2f 3DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
96eb6687 4
8b3c87f0
P
5all: build
6
7build:
8
9install: build
539b9d2f 10 install -o root -g root -m 0755 -d $(DESTDIR)/usr/sbin
14c34385
P
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)/
539b9d2f 14 install -o root -g root -m 0755 -d $(DESTDIR)/etc/profile.d
14c34385
P
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)/
8b3c87f0
P
20
21clean:
89e5ff8d 22
14c34385
P
23deb:
24 debuild -I.git -I*.ex -us -uc -b && \
25 echo -e "\n\n==> Lancer \"sudo debi\" pour tester l'installation.\n"
89e5ff8d 26
96eb6687 27release:
14c34385 28 debuild -I.git -I*.ex -us -uc -tc -sa && debrelease --dput wheezy-test