aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-08-01 02:45:10 +0200
committerMattias Andrée <maandree@operamail.com>2013-08-01 02:45:10 +0200
commitd96ba335b7a19f43b3fd3b605bd88fa7877c8729 (patch)
tree90c73a3df7f77904bb637ac62a81b083b8aff6e4 /Makefile
parentprefix so files with lib (diff)
downloadargparser-d96ba335b7a19f43b3fd3b605bd88fa7877c8729.tar.gz
argparser-d96ba335b7a19f43b3fd3b605bd88fa7877c8729.tar.bz2
argparser-d96ba335b7a19f43b3fd3b605bd88fa7877c8729.tar.xz
add info to makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files 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: