# quick makefile for debbuild # $Id: Makefile 141 2008-02-28 17:50:36Z kdeugau $ MANIFEST = \ debbuild Makefile COPYING debbuild.spec PKGNAME=debbuild VERSION=0.9 MANDIR=/usr/share/man CONFDIR=/etc all: # nothing to do install: mkdir -p $(DESTDIR)/usr/bin cp debbuild $(DESTDIR)/usr/bin mkdir -p $(DESTDIR)$(MANDIR)/man8 pod2man --center="DeepNet Dev Tools" --section 8 \ repoput | gzip > $(DESTDIR)$(MANDIR)/man8/debbuild.8.gz dist: mkdir $(PKGNAME)-$(VERSION) tar cf - $(MANIFEST) | (cd $(PKGNAME)-$(VERSION); tar xvf -) /usr/bin/perl -p -e 's/#VERSION#/$(VERSION)/' < $(PKGNAME).spec > $(PKGNAME)-$(VERSION)/$(PKGNAME).spec tar cvf $(PKGNAME)-$(VERSION).tar $(PKGNAME)-$(VERSION) gzip -v -f -9 $(PKGNAME)-$(VERSION).tar rm -rf $(PKGNAME)-$(VERSION) # gpg --detach-sign $(PKGNAME)-$(VERSION).tar.gz