aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-10-12 19:41:48 +0200
committerMattias Andrée <maandree@operamail.com>2013-10-12 19:41:48 +0200
commit72777552f3d58afc9196f22d7d34a5bdccb25498 (patch)
tree47ed0261faadc891e895d378d8483f7f1f2d2e2d /Makefile
parentignore the root of the crawl for -v (diff)
downloadbfind-72777552f3d58afc9196f22d7d34a5bdccb25498.tar.gz
bfind-72777552f3d58afc9196f22d7d34a5bdccb25498.tar.bz2
bfind-72777552f3d58afc9196f22d7d34a5bdccb25498.tar.xz
update makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 30 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 61a5811..41376df 100644
--- a/Makefile
+++ b/Makefile
@@ -9,18 +9,35 @@ PY3_SHEBANG = /usr/bin/env/ python3
.PHONY: all
-all: cmd
+all: cmd doc
.PHONY: cmd
cmd: bfind
+.PHONY: doc
+doc: info
+
+.PHONY: info
+info: bfind.info.gz
+
+%.info.gz: info/%.texinfo.install
+ makeinfo "$<"
+ gzip -9 -f "$*.info"
+
+info/%.texinfo.install: info/%.texinfo
+ cp "$<" "$@"
+ sed -i 's:^@set COMMAND bfind:@set COMMAND $(COMMAND):g' "$@"
+
bfind: src/bfind.py
cp "$<" "$@"
sed -i 's:/usr/bin/env/ python3:$(PY3_SHEBANG):' "$@"
.PHONY: install
-install: install-cmd install-license
+install: install-core install-doc
+
+.PHONY: install-core
+install-core: install-cmd install-license
.PHONY: install-cmd
install-cmd: bfind
@@ -32,15 +49,25 @@ install-license:
install -d -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)"
install -m644 -- COPYING LICENSE "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)"
+.PHONY: install-doc
+install-doc: install-info
+
+.PHONY: install-info
+install-info: bfind.info.gz
+ install -dm755 -- "$(DESTDIR)$(PREFIX)$(DATA)/info"
+ install -m644 bfind.info.gz -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz"
+
+
.PHONY: uninstall
uninstall:
-rm -- "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)"
-rm -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)/COPYING"
-rm -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)/LICENSE"
-rm -d -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)"
+ -rm -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz"
.PHONY: clean
clean:
- -rm -- bfind
+ -rm -- bfind bfind.info.gz info/*.install