* On suit la gestion des paquets Debian (grâce au dpkg.log).
[auf-git-etc.git] / Makefile
CommitLineData
96eb6687 1VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
539b9d2f 2DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
96eb6687 3
8b3c87f0
P
4all: build
5
6build:
7
8install: build
539b9d2f 9 install -o root -g root -m 0755 -d $(DESTDIR)/usr/sbin
1aa0b563 10 install -o root -g root -m 0755 cron.auf-git-etc $(DESTDIR)/usr/sbin/
539b9d2f
P
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/
e981b767
P
13 install -o root -g root -m 0750 -d $(DESTDIR)/etc/auf-git-etc
14 cp -a etc/* $(DESTDIR)/etc/auf-git-etc/
8b3c87f0
P
15
16clean:
89e5ff8d
P
17
18test:
539b9d2f 19 debuild -I.git -I*.ex -b -us -uc && \
96eb6687 20 rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
04752736 21 # sudo debi
89e5ff8d 22
96eb6687 23release:
3d8b9e1a 24 debuild -I.git -I*.ex && debrelease --dput etch-test
8b3c87f0 25