From 5b852fe120a2aae86622f70c93ace2965a805b95 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 28 May 2014 01:41:44 +0200 Subject: begin on texinfo manual MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 42 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d11fffa..a94d04e 100644 --- a/Makefile +++ b/Makefile @@ -86,8 +86,20 @@ include config.mk # Build rules. +.PHONY: default +default: lib test info + .PHONY: all -all: bin/libgamma.so.$(LIB_VERSION) bin/libgamma.so.$(LIB_MAJOR) bin/libgamma.so bin/test +all: lib test doc + +.PHONY: lib +lib: bin/libgamma.so.$(LIB_VERSION) bin/libgamma.so.$(LIB_MAJOR) bin/libgamma.so + +.PHONY: test +test: bin/test + +.PHONY: doc +doc: info pdf dvi ps bin/libgamma.so.$(LIB_VERSION): $(foreach O,$(LIBOBJ),obj/$(O).o) @@ -114,12 +126,38 @@ obj/%.o: test/%.c mkdir -p $(shell dirname $@) $(CC) $(TEST_FLAGS) -Isrc -c -o $@ $< +.PHONY: info +info: libgamma.info +%.info: info/%.texinfo info/fdl.texinfo + makeinfo $< + +.PHONY: pdf +pdf: libgamma.pdf +%.pdf: info/%.texinfo info/fdl.texinfo + mkdir -p obj + cd obj ; yes X | texi2pdf ../$< + mv obj/$@ $@ + +.PHONY: dvi +dvi: libgamma.dvi +%.dvi: info/%.texinfo info/fdl.texinfo + mkdir -p obj + cd obj ; yes X | $(TEXI2DVI) ../$< + mv obj/$@ $@ + +.PHONY: ps +ps: libgamma.ps +%.ps: info/%.texinfo info/fdl.texinfo + mkdir -p obj + cd obj ; yes X | texi2pdf --ps ../$< + mv obj/$@ $@ + # Clean rules. .PHONY: clean clean: - -rm -rf obj bin + -rm -rf obj bin libgamma.{info,pdf,ps,dvi} .PHONY: distclean distclean: clean -- cgit v1.2.3-70-g09d2