Makefiles: Add manual and a global doc target
authorJakob Gruber <jakob.gruber@gmail.com>
Thu, 25 Oct 2012 09:40:05 +0000 (11:40 +0200)
committerJakob Gruber <jakob.gruber@gmail.com>
Thu, 25 Oct 2012 09:43:40 +0000 (11:43 +0200)
Manual generation is now included in the doc/Makefile. Additionally,
a doc target has been added to the global Makefile.

Makefile
doc/Makefile

index 65085af..0b35fdf 100644 (file)
--- 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
 
index b3a7a0f..18934e5 100644 (file)
 #      You should have received a copy of the GNU General Public License
 #      along with simavr.  If not, see <http://www.gnu.org/licenses/>.
 
-# 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