aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-03 11:03:04 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-03 11:03:04 +0100
commitcac336116b451816a153d7967e4353d848fa32a1 (patch)
tree22fc782d60160e3bc5f996bfa336b0779a66da31 /Makefile
parentadd deps (diff)
downloadkrandom-cac336116b451816a153d7967e4353d848fa32a1.tar.gz
krandom-cac336116b451816a153d7967e4353d848fa32a1.tar.bz2
krandom-cac336116b451816a153d7967e4353d848fa32a1.tar.xz
begin on info manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--Makefile36
1 files changed, 34 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8efdab5..3fbf86c 100644
--- a/Makefile
+++ b/Makefile
@@ -50,10 +50,10 @@ FLAGS = $(WARN) -std=gnu99
.PHONY: default
-default: command shell
+default: command shell doc
.PHONY: all
-all: command shell
+all: command shell info
.PHONY: command
@@ -93,6 +93,38 @@ bin/%.fish: src/completion
auto-auto-complete fish --output $@ --source $< command="$*"
+.PHONY: doc
+doc: info pdf dvi ps
+
+.PHONY: info
+info: bin/krandom.info
+bin/%.info: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; makeinfo ../$<
+ mv obj/$*.info bin/$*.info
+
+.PHONY: pdf
+pdf: bin/krandom.pdf
+bin/%.pdf: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; yes X | texi2pdf ../$<
+ mv obj/$*.pdf bin/$*.pdf
+
+.PHONY: dvi
+dvi: bin/krandom.dvi
+bin/%.dvi: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; yes X | $(TEXI2DVI) ../$<
+ mv obj/$*.dvi bin/$*.dvi
+
+.PHONY: ps
+ps: bin/krandom.ps
+bin/%.ps: info/%.texinfo info/fdl.texinfo
+ @mkdir -p obj bin
+ cd obj ; yes X | texi2pdf --ps ../$<
+ mv obj/$*.ps bin/$*.ps
+
+
.PHONY: clean
clean: