Seconde tentative...
[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 0750 -d $(DESTDIR)/etc/auf-git-etc
14 cp -a etc/* $(DESTDIR)/etc/auf-git-etc/
15
16clean:
17
18test:
19 debuild -I.git -I*.ex -b -us -uc && \
20 rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
21
22release:
23 debuild -I.git -I*.ex && debrelease --dput $(DIST)
24