X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=Makefile;h=f52c82cc1485a3826e6f07260956bd2a2dfec667;hb=34ee2c761045becff8f78a64e70aff3e6ade2617;hp=4b0c9e1295a844899f5524c04c9b808f6856b191;hpb=1a64ed28ce14cdb98ff5ff15430ac03da0c3dc78;p=monkeysphere.git diff --git a/Makefile b/Makefile index 4b0c9e1..f52c82c 100755 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # © 2008-2010 Daniel Kahn Gillmor # Licensed under GPL v3 or later -MONKEYSPHERE_VERSION = `head -n1 changelog | sed 's/.*(\([^-]*\)).*/\1/'` +MONKEYSPHERE_VERSION = `head -n1 Changelog | sed 's/.*(\([^-]*\)).*/\1/'` # these defaults are for debian. porters should probably adjust them # before calling make install @@ -19,20 +19,15 @@ all: tarball: clean rm -rf monkeysphere-$(MONKEYSPHERE_VERSION) - mkdir -p monkeysphere-$(MONKEYSPHERE_VERSION)/doc - ln -s ../../website/getting-started-user.mdwn ../../website/getting-started-admin.mdwn ../../doc/TODO ../../doc/MonkeySpec monkeysphere-$(MONKEYSPHERE_VERSION)/doc - ln -s ../changelog ../COPYING ../etc ../Makefile ../man ../src ../tests monkeysphere-$(MONKEYSPHERE_VERSION) + ln -s ../Changelog ../COPYING ../etc ../Makefile ../man ../src ../tests monkeysphere-$(MONKEYSPHERE_VERSION) echo Monkeysphere $(MONKEYSPHERE_VERSION) > monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION echo -n "git revision " >> monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION git rev-parse HEAD >> monkeysphere-$(MONKEYSPHERE_VERSION)/VERSION tar -ch --exclude='*~' monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz rm -rf monkeysphere-$(MONKEYSPHERE_VERSION) -debian-package: tarball - tar xzf monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz - cp -a packaging/debian monkeysphere-$(MONKEYSPHERE_VERSION) - (cd monkeysphere-$(MONKEYSPHERE_VERSION) && debuild -uc -us) - rm -rf monkeysphere-$(MONKEYSPHERE_VERSION) +debian-package: + git buildpackage -uc -us --git-upstream-branch=master --git-debian-branch=debian --git-no-pristine-tar --git-ignore-new # don't explicitly depend on the tarball, since our tarball # (re)generation is not idempotent even when no source changes. @@ -67,8 +62,7 @@ install: all installman install -m 0644 src/share/m/* $(DESTDIR)$(PREFIX)/share/monkeysphere/m install -m 0644 src/share/mh/* $(DESTDIR)$(PREFIX)/share/monkeysphere/mh install -m 0644 src/share/ma/* $(DESTDIR)$(PREFIX)/share/monkeysphere/ma - install doc/* $(DESTDIR)$(PREFIX)/share/doc/monkeysphere - install changelog $(DESTDIR)$(PREFIX)/share/doc/monkeysphere + install Changelog $(DESTDIR)$(PREFIX)/share/doc/monkeysphere install -m 0644 etc/monkeysphere.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere.conf$(ETCSUFFIX) install -m 0644 etc/monkeysphere-host.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere-host.conf$(ETCSUFFIX) install -m 0644 etc/monkeysphere-authentication.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere-authentication.conf$(ETCSUFFIX)