VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
+DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
all: build
build:
install: build
- install -o root -g root -m 0644 auf-git-etc.sh $(DESTDIR)/etc/profile.d/
+ install -o root -g root -m 0755 -d $(DESTDIR)/usr/sbin
install -o root -g root -m 0755 cron.auf-git-etc $(DESTDIR)/usr/sbin/
+ install -o root -g root -m 0755 -d $(DESTDIR)/etc/profile.d
+ install -o root -g root -m 0644 auf-git-etc.sh $(DESTDIR)/etc/profile.d/
+ install -o root -g root -m 0755 -d $(DESTDIR)/etc/auf-git-etc
+ install -o root -g root -m 0644 git.exclude $(DESTDIR)/etc/auf-git-etc/exclude
+ install -o root -g root -m 0755 git.post-commit $(DESTDIR)/etc/auf-git-etc/post-commit
clean:
test:
- debuild -I.git -I*.ex -b -us -uc -tc
+ debuild -I.git -I*.ex -b -us -uc && \
rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/
release:
- debuild -I.git -I*.ex
- debrelease --dput auf-debian
+ debuild -I.git -I*.ex && debrelease --dput $(DIST)