From 3c642028daaaf482a747855f1a575faf2be3851d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 30 Sep 2013 04:38:30 +0200 Subject: add info manual to make file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 78dae12..042419a 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,8 @@ SYSCONF = /etc DEV = /dev BIN = /bin SBIN = /sbin -LICENSES = /usr/share/licenses +DATA = /usr/share +LICENSES = $(DATA)/licenses COMMAND = got PKGNAME = gates-of-tartaros SSHUSER = sshlogin @@ -12,7 +13,25 @@ SSH = ssh BASH_SHEBANG = /usr/bin/env bash -all: got.install got-cmd.install + +.PHONY: all +all: cmd doc + +.PHONY: doc +doc: info + +.PHONY: info +info: gates-of-tartaros.info.gz + +%.info.gz: info/%.texinfo.install + makeinfo "$<" + gzip -9 -f "$*.info" + +info/%.texinfo.install: info/%.texinfo + cp "$<" "$@" + +.PHONY: cmd +cmd: got.install got-cmd.install got.install: got cp "$<" "$@" @@ -29,14 +48,28 @@ got-cmd.install: got-cmd sed -i 's:#!/usr/bin/env bash:#!$(BASH_SHEBANG):g' "$@" -install: got.install got-cmd.install + +.PHONY: install +install: install-cmd install-doc + +.PHONY: install-cmd +install-cmd: got.install got-cmd.install install -Dm755 -- "got.install" "$(DESTDIR)$(PREFIX)$(SBIN)/got" install -Dm755 -- "got-cmd.install" "$(DESTDIR)$(PREFIX)$(BIN)/got-cmd" install -Dm644 -- "gotrc" "$(DESTDIR)$(SYSCONF)/gotrc.examples/lower-left-ponysay" install -d -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)" install -m644 -- COPYING LICENSE "$(DESTDIR)$(LICENSES)/$(PKGNAME)" +.PHONY: install-doc +install-doc: install-info + +.PHONY: install-info +install-info: gates-of-tartaros.info.gz + install -Dm644 -- "$<" "$(DESTDIR)$(DATA)/info/$(PKGNAME).info.gz" + + +.PHONY: uninstall uninstall: -rm -- "$(DESTDIR)$(PREFIX)$(SBIN)/got" -rm -- "$(DESTDIR)$(PREFIX)$(BIN)/got-cmd" @@ -44,8 +77,11 @@ uninstall: -rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/COPYING" -rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/LICENSE" -rm -d -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)" + -rm -- "$(DESTDIR)$(DATA)/info/$(PKGNAME).info.gz" + +.PHONY: clean clean: - -rm *.install 2>/dev/null + -rm *.install *.info.gz 2>/dev/null -- cgit v1.2.3-70-g09d2