diff options
author | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-09-04 22:35:46 -0700 |
---|---|---|
committer | Jameson Graef Rollins <jrollins@phys.columbia.edu> | 2008-09-04 22:35:46 -0700 |
commit | 55ea6c63bed596b086bdb3d06e64af5f97dbb55a (patch) | |
tree | 94d2c4d21ccc6db41cf39ad9ef1ea0f6a6610524 /Makefile | |
parent | d4e17a8a5c4cd004997ce4f951a3f20d6e70da2f (diff) | |
parent | 5a18c464ad8a4547d7c80aa7a508f55353e004f6 (diff) |
Merge commit 'dkg/master'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 23 insertions, 2 deletions
@@ -1,4 +1,9 @@ -MONKEYSPHERE_VERSION=`head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'` +MONKEYSPHERE_VERSION = `head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'` + +# these defaults are for debian. porters should probably adjust them +# before calling make install +ETCPREFIX ?= +PREFIX ?= /usr all: keytrans @@ -24,4 +29,20 @@ clean: # clean up old monkeysphere packages lying around as well. rm -f monkeysphere_* -.PHONY: all clean tarball debian-package +# this target is to be called from the tarball, not from the git +# working dir! +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/sbin $(DESTDIR)$(PREFIX)/share/monkeysphere + mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 $(DESTDIR)$(PREFIX)/share/man/man7 $(DESTDIR)$(PREFIX)/share/man/man8 + mkdir -p $(DESTDIR)$(PREFIX)/share/doc/monkeysphere + mkdir -p $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere + install src/monkeysphere src/monkeysphere-ssh-proxycommand src/keytrans/openpgp2ssh $(DESTDIR)/$(PREFIX)/bin + install src/monkeysphere-server $(DESTDIR)/$(PREFIX)/sbin + install -m 0644 src/common $(DESTDIR)/$(PREFIX)/share/monkeysphere + install doc/* $(DESTDIR)$(PREFIX)/share/doc/monkeysphere + install man/man1/* $(DESTDIR)$(PREFIX)/share/man/man1 + install man/man7/* $(DESTDIR)$(PREFIX)/share/man/man7 + install man/man8/* $(DESTDIR)$(PREFIX)/share/man/man8 + install -m 0644 etc/* $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere + +.PHONY: all clean tarball debian-package install |