From aedb920ec5b6dbdd7271eed62a3184daf90e0d7f Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Fri, 6 Oct 2017 13:18:28 +0200 Subject: [PATCH] Doxygen: simplify makefile --- doc/Makefile | 31 +++++-------------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 37667a2cb..7a03deed7 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,4 +1,4 @@ -basedirs := os arch/cpu arch/platform +basedirs := os arch manuals := $(shell find ./ -name "*.txt") filetypes := -iwholename "*/doc/*.txt" empty := @@ -21,21 +21,12 @@ ifeq ($(HOST_OS),Windows) endif endif -.PHONY: clean html pdf upload +docdirs = $(sort $(foreach dir,$(basedirs),${shell find ../${dir} -type d -not -path "*/.*" -not -path "*/obj_*"})) +docsrc = $(docdirs) $(foreach dir,$(docdirs),${shell find $(dir) -type f $(filetypes)}) $(manuals) -html: init doxygen.log +.PHONY: clean html -pdf: doclatex = YES -pdf: init doxygen.log - gmake -C latex refman.pdf - -init: - @echo "> Scanning files" - -# This target requires and graphviz and doxygen -doxygen.log: docdirs = $(sort $(foreach dir,$(basedirs),${shell find ../${dir} -type d -not -path "*/.*" -not -path "*/obj_*"})) -doxygen.log: docsrc = $(docdirs) $(foreach dir,$(docdirs),${shell find $(dir) -type f $(filetypes)}) $(manuals) -doxygen.log: +html: @doxygen Doxyfile @echo "Done, errorlog follows:" @echo "" @@ -45,17 +36,5 @@ doxygen.log: clean: @echo "> Cleaning Documentation" @$(RM) -r "$(docdir)/html" - @$(RM) -r "$(docdir)/rtf" - @$(RM) -r "$(docdir)/latex" @$(RM) -r "doxygen.log" @echo " done." - -#upload: html #pdf -# scp -C latex/refman.pdf adamdunkels@shell.sourceforge.net:/home/groups/c/co/contiki/htdocs/ -# tar czfv - html | ssh adamdunkels@shell.sourceforge.net "cd /home/groups/c/co/contiki/htdocs/; tar xfz -" -# (cd html; rsync -rv . r2d2.sics.se:/home/adam/public_html/contiki/docs) - -test: - @echo $(docroot) - @echo $(docsrc) -