PACKAGE = $(shell dpkg-parsechangelog | sed -n 's/^Source: //p') VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p') DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p') all: build build: install: build install -o root -g root -m 0755 -d $(DESTDIR)/usr/sbin install -o root -g root -m 0755 auf-git-etc-status $(DESTDIR)/usr/sbin/ install -o root -g root -m 0755 -d $(DESTDIR)/usr/lib/$(PACKAGE) install -o root -g root -m 0755 cron.sh $(DESTDIR)/usr/lib/$(PACKAGE)/ install -o root -g root -m 0755 -d $(DESTDIR)/etc/profile.d install -o root -g root -m 0644 profile.sh $(DESTDIR)/etc/profile.d/$(PACKAGE).sh install -o root -g root -m 0755 -d $(DESTDIR)/etc/sudoers.d install -o root -g root -m 0440 sudoers.d $(DESTDIR)/etc/sudoers.d/$(PACKAGE) install -o root -g root -m 0750 -d $(DESTDIR)/etc/$(PACKAGE) cp -a etc/* $(DESTDIR)/etc/$(PACKAGE)/ clean: deb: debuild -I.git -I*.ex -us -uc -b && \ echo -e "\n\n==> Lancer \"sudo debi\" pour tester l'installation.\n" release: debuild -I.git -I*.ex -us -uc -tc -sa && debrelease --dput wheezy-test