* Basculement des hook et exclude en fichier de configuration Debian.
[auf-git-etc.git] / Makefile
1 VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
2 DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
3
4 all: build
5
6 build:
7
8 install: build
9 install -o root -g root -m 0755 -d $(DESTDIR)/usr/sbin
10 install -o root -g root -m 0755 cron.auf-git-etc $(DESTDIR)/usr/sbin/
11 install -o root -g root -m 0755 -d $(DESTDIR)/etc/profile.d
12 install -o root -g root -m 0644 auf-git-etc.sh $(DESTDIR)/etc/profile.d/
13 install -o root -g root -m 0750 -d $(DESTDIR)/etc/auf-git-etc
14 cp -a etc/* $(DESTDIR)/etc/auf-git-etc/
15
16 clean:
17
18 test:
19 debuild -I.git -I*.ex -b -us -uc && \
20 rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
21 # sudo debi
22
23 release:
24 debuild -I.git -I*.ex && debrelease --dput $(DIST)-test
25