aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-28 01:41:44 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-28 01:41:44 +0200
commit5b852fe120a2aae86622f70c93ace2965a805b95 (patch)
tree46702f1393ddd315eaafa304b7a6746424fcaa34 /Makefile
parentSplit out method naming to its own function (diff)
downloadlibgamma-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--Makefile42
1 files changed, 40 insertions, 2 deletions
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