blob: 779bb1a81c11f64490548029467760c8da749562 (
plain)
- MONKEYSPHERE_VERSION = `head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
- # these defaults are for debian. porters should probably adjust them
- # before calling make install
- ETCPREFIX ?=
- ETCSUFFIX ?=
- PREFIX ?= /usr
- MANPREFIX ?= $(PREFIX)/share/man
- all: keytrans
- keytrans:
- $(MAKE) -C src/keytrans
- 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 ../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: tarball
- 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)
- freebsd-distinfo: tarball
- ./utils/build-freebsd-distinfo
- clean:
- $(MAKE) -C src/keytrans clean
- # clean up old monkeysphere packages lying around as well.
- rm -f monkeysphere_*
- # this target is to be called from the tarball, not from the git
- # working dir!
- install: all installman
- mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/sbin $(DESTDIR)$(PREFIX)/share/monkeysphere
- 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 -m 0644 etc/monkeysphere.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere.conf$(ETCSUFFIX)
- install -m 0644 etc/monkeysphere-server.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere-server.conf$(ETCSUFFIX)
- installman:
- mkdir -p $(DESTDIR)$(MANPREFIX)/man1 $(DESTDIR)$(MANPREFIX)/man7 $(DESTDIR)$(MANPREFIX)/man8
- gzip -n man/*/*
- install man/man1/* $(DESTDIR)$(MANPREFIX)/man1
- install man/man7/* $(DESTDIR)$(MANPREFIX)/man7
- install man/man8/* $(DESTDIR)$(MANPREFIX)/man8
- gzip -d man/*/*
- releasenote:
- ./utils/build-releasenote
- .PHONY: all clean tarball debian-package install releasenote
|