diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-28 01:41:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-28 01:41:44 +0200 |
commit | 5b852fe120a2aae86622f70c93ace2965a805b95 (patch) | |
tree | 46702f1393ddd315eaafa304b7a6746424fcaa34 /Makefile | |
parent | Split out method naming to its own function (diff) | |
download | libgamma-5b852fe120a2aae86622f70c93ace2965a805b95.tar.gz libgamma-5b852fe120a2aae86622f70c93ace2965a805b95.tar.bz2 libgamma-5b852fe120a2aae86622f70c93ace2965a805b95.tar.xz |
begin on texinfo manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 42 |
1 files changed, 40 insertions, 2 deletions
@@ -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 |