X-Git-Url: http://git.auf.org/?p=auf-git-etc.git;a=blobdiff_plain;f=Makefile;h=b95d3139156e7abc4b9158f81c75f4a8d4680e80;hp=508a3c4331b7ce55eb595d84a3203d56b0aa3606;hb=04752736fc6a2194d42a943fbc54eebced97106d;hpb=8b3c87f093a388d9407b9a59d3992563e51854fb;ds=inline diff --git a/Makefile b/Makefile index 508a3c4..b95d313 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,25 @@ +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 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 0750 -d $(DESTDIR)/etc/auf-git-etc + cp -a etc/* $(DESTDIR)/etc/auf-git-etc/ clean: -deb: - debuild +test: + debuild -I.git -I*.ex -b -us -uc && \ + rsync -avP ../auf-git-etc_$(VERSION)_all.deb test:/tmp/ + # sudo debi + +release: + debuild -I.git -I*.ex && debrelease --dput $(DIST)-test