aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-18 22:37:13 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-18 22:37:13 +0100
commit7777c1058f55cc43a75a05178aeb40cec7bf69fb (patch)
treec832cbeb4662e368754b39074c26fa2f3c55f9c8 /Makefile
parentclean up dependency list (diff)
downloadsha3sum-7777c1058f55cc43a75a05178aeb40cec7bf69fb.tar.gz
sha3sum-7777c1058f55cc43a75a05178aeb40cec7bf69fb.tar.bz2
sha3sum-7777c1058f55cc43a75a05178aeb40cec7bf69fb.tar.xz
beginning on the info manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 31 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index aa7d34d..7f5ac44 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ shake512sum = SHAKE512
.PHONY: default
-default: command shell
+default: command shell info
.PHONY: all
all: command shell doc
@@ -88,7 +88,7 @@ bin/%.fish: src/completion
.PHONY: doc
-doc: man
+doc: man info pdf dvi ps
.PHONY: man
man: $(foreach C,$(CMDS),bin/$(C).1)
@@ -98,6 +98,35 @@ bin/%.1: doc/xsum.texman
cat $< | sed -e 's/xsum/$*/g' -e 's/XSUM/$($*)/g' | texman > $@
+.PHONY: info
+info: bin/sha3sum.info
+bin/%.info: doc/%.texinfo doc/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; makeinfo ../$<
+ mv obj/$*.info bin/$*.info
+
+.PHONY: pdf
+pdf: bin/sha3sum.pdf
+bin/%.pdf: doc/%.texinfo doc/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; yes X | texi2pdf ../$<
+ mv obj/$*.pdf bin/$*.pdf
+
+.PHONY: dvi
+dvi: bin/sha3sum.dvi
+bin/%.dvi: doc/%.texinfo doc/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; yes X | $(TEXI2DVI) ../$<
+ mv obj/$*.dvi bin/$*.dvi
+
+.PHONY: ps
+ps: bin/sha3sum.ps
+bin/%.ps: doc/%.texinfo doc/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; yes X | texi2pdf --ps ../$<
+ mv obj/$*.ps bin/$*.ps
+
+
.PHONY: clean
clean: