From cac336116b451816a153d7967e4353d848fa32a1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 3 Dec 2014 11:03:04 +0100 Subject: begin on info manual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3-70-g09d2