Première tentative de support de fichiers de configuration Debian.
[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/
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
8b3c87f0
P
16
17clean:
89e5ff8d
P
18
19test:
539b9d2f 20 debuild -I.git -I*.ex -b -us -uc && \
96eb6687 21 rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
89e5ff8d 22
96eb6687 23release:
539b9d2f 24 debuild -I.git -I*.ex && debrelease --dput $(DIST)
8b3c87f0 25