From d96ba335b7a19f43b3fd3b605bd88fa7877c8729 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Aug 2013 02:45:10 +0200 Subject: add info to makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 571ff06..145bb6e 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,16 @@ JAVAC = javac -all: python bash java c +all: python bash java c doc + +doc: info + +info: argparser.info.gz + +%.info.gz: info/%.texinfo + makeinfo "$<" + gzip -9 -f "$*.info" + python: bin/argparser.py bin/argparser.py: src/argparser.py @@ -56,7 +65,7 @@ bin/argparser.so: src/argparser.c src/argparser.h -install: install-python install-bash install-java install-c install-license +install: install-python install-bash install-java install-c install-license install-doc install-python: bin/argparser.py install -Dm644 bin/argparser.py "$(DESTDIR)$(LIBPY3)/argparser.py" @@ -76,9 +85,14 @@ install-license: install -d "$(DESTDIR)$(LICENSES)/$(PKGNAME)" install -m644 COPYING LICENSE "$(DESTDIR)$(LICENSES)/$(PKGNAME)" +install-doc: install-info +install-info: argparser.info.gz + install -Dm644 argparser.info.gz "$(DESTDIR)$(PREFIX)$(SHARE)/info/$(PKGNAME).info.gz" -uninstall: uninstall-python uninstall-bash uninstall-java uninstall-c uninstall-license + + +uninstall: uninstall-python uninstall-bash uninstall-java uninstall-c uninstall-license uninstall-doc uninstall-python: rm -- "$(DESTDIR)$(LIBPY3)/argparser.py" @@ -99,6 +113,11 @@ uninstall-license: rm -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)/COPYING" -rmdir -- "$(DESTDIR)$(LICENSES)/$(PKGNAME)" +uninstall-doc: uninstall-info + +uninstall-info: + rm -- "$(DESTDIR)$(PREFIX)$(SHARE)/info/$(PKGNAME).info.gz" + clean: -- cgit v1.2.3-70-g09d2