Prepare for 0.1 release: make install.

* make/install.make (install): Install documentation.
This commit is contained in:
Jan Nieuwenhuizen 2016-10-16 08:14:50 +02:00
parent 323e78b190
commit 6d64e55500

View file

@ -1,3 +1,14 @@
.PHONY: tree-clean-p
READMES:=\
ANNOUNCE\
ANNOUNCE-2\
AUTHORS\
COPYING\
HACKING\
NEWS\
#
COMMIT:=$(shell test -d .git && (git show 2>/dev/null | head -1 | cut -d' ' -f 2) || cat .tarball-version)
TARBALL_DIR:=$(PACKAGE)-$(VERSION)
TARBALL:=$(OUT)/$(TARBALL_DIR).tar.gz
@ -27,19 +38,26 @@ $(TARBALL): tree-clean-p .tarball-version ChangeLog
echo $^ | tr ' ' '\n' | grep -Ev 'tree-clean-p')\
| tar --transform=s,^,$(TARBALL_DIR)/,S -T- -czf $@
ChangeLog: tree-clean-p
ChangeLog:
build-aux/gitlog-to-changelog > $@
install:
install: all ChangeLog
mkdir -p $(DESTDIR)$(PREFIX)/bin
install mes $(DESTDIR)$(PREFIX)/bin/mes
install scripts/elf.mes $(DESTDIR)$(PREFIX)/bin/elf.mes
install scripts/include.mes $(DESTDIR)$(PREFIX)/bin/include.mes
install scripts/mescc.mes $(DESTDIR)$(PREFIX)/bin/mescc.mes
install scripts/repl.mes $(DESTDIR)$(PREFIX)/bin/repl.mes
install scripts/paren.mes $(DESTDIR)$(PREFIX)/bin/paren.mes
mkdir -p $(DESTDIR)$(PREFIX)/share/mes
$(GIT_ARCHIVE_HEAD) module\
| tar -C $(DESTDIR)$(PREFIX)/share/mes -xf-
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/mes
$(GIT_ARCHIVE_HEAD) $(READMES) \
| tar -C $(DESTDIR)$(PREFIX)/share/doc/mes -xf-
$(GIT_ARCHIVE_HEAD) doc \
| tar -C $(DESTDIR)$(PREFIX)/share/doc/mes --strip=1 -xf-
cp ChangeLog $(DESTDIR)$(PREFIX)/share/doc/mes
release: tree-clean-p check dist
git tag v$(VERSION)