Première tentative de support de fichiers de configuration Debian.
[auf-git-etc.git] / Makefile
... / ...
CommitLineData
1VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
2DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
3
4all: build
5
6build:
7
8install: 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 0755 -d $(DESTDIR)/etc/auf-git-etc
14 install -o root -g root -m 0644 git.exclude $(DESTDIR)/etc/auf-git-etc/exclude
15 install -o root -g root -m 0755 git.post-commit $(DESTDIR)/etc/auf-git-etc/post-commit
16
17clean:
18
19test:
20 debuild -I.git -I*.ex -b -us -uc && \
21 rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
22
23release:
24 debuild -I.git -I*.ex && debrelease --dput $(DIST)
25