From: Jakob Gruber Date: Thu, 25 Oct 2012 09:40:05 +0000 (+0200) Subject: Makefiles: Add manual and a global doc target X-Git-Tag: v1.0 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=a9cd39cc0cd34eeaf3f256a9b53138e6ef8e884e;p=sx%2Fsimavr.git Makefiles: Add manual and a global doc target Manual generation is now included in the doc/Makefile. Additionally, a doc target has been added to the global Makefile. --- diff --git a/Makefile b/Makefile index 65085af..0b35fdf 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ - +.PHONY: doc all: build-simavr build-tests build-examples @@ -14,8 +14,12 @@ build-examples: build-simavr install: $(MAKE) -C simavr install +doc: + $(MAKE) -C doc + clean: $(MAKE) -C simavr clean $(MAKE) -C tests clean $(MAKE) -C examples clean + $(MAKE) -C doc clean diff --git a/doc/Makefile b/doc/Makefile index b3a7a0f..18934e5 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -16,10 +16,13 @@ # You should have received a copy of the GNU General Public License # along with simavr. If not, see . -# you need Graphviz, ruby and exuberant ctags here. -# this is not generated in the normal code build +# For the callgraph, you need Graphviz, ruby and exuberant ctags. +# The manual requires latex including additional packages (acronym, graphicx, fancyvrb, ...). +# This is not generated in the normal code build -all: simavr_callgraph.pdf +.PHONY: manual + +all: simavr_callgraph.pdf manual simavr_callgraph.pdf: ctags -f .tags ../simavr/sim/sim_*.[ch] ../simavr/sim/run_*.[ch] 2>/dev/null && \ @@ -27,5 +30,9 @@ simavr_callgraph.pdf: ../simavr/sim/sim_*.c ../simavr/sim/run_*.c >.tags.dot && \ dot -Tpdf .tags.dot -o $@ +manual: + $(MAKE) -C manual + clean: rm -f .tags* + $(MAKE) -C manual clean