diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-06-19 00:34:10 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2008-06-19 00:34:10 -0400 |
commit | b894e98ae67832a320ec5d7597231c94ddf29b99 (patch) | |
tree | babce9c1d6188307ce56bf01cb3e2a1c54c4f516 /Makefile | |
parent | e158221fd47d035fa3a7a8cd715327714d40d32a (diff) |
added debian-package target to Makefile to simplify package building process. It gets a little weird and recursive; could probably be better-engineered.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,12 +1,27 @@ +MONKEYSPHERE_VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'` + all: keytrans keytrans: $(MAKE) -C src/keytrans release: clean - tar c COPYING doc etc Makefile man src | gzip -n > ../monkeysphere_`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`.orig.tar.gz + rm -rf monkeysphere-$(MONKEYSPHERE_VERSION) + mkdir -p monkeysphere-$(MONKEYSPHERE_VERSION)/doc + ln -s ../../doc/README ../../doc/TODO ../../doc/MonkeySpec monkeysphere-$(MONKEYSPHERE_VERSION)/doc + ln -s ../COPYING ../etc ../Makefile ../man ../src monkeysphere-$(MONKEYSPHERE_VERSION) + tar -ch monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz + rm -rf monkeysphere-$(MONKEYSPHERE_VERSION) + +debian-package: release + tar xzf monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz + cp -a debian monkeysphere-$(MONKEYSPHERE_VERSION) + (cd monkeysphere-$(MONKEYSPHERE_VERSION) && debuild -uc -us) + rm -rf monkeysphere-$(MONKEYSPHERE_VERSION) clean: $(MAKE) -C src/keytrans clean + # clean up old monkeysphere packages lying around as well. + rm -f monkeysphere_* -.PHONY: all clean release +.PHONY: all clean release debian-package |