Doxygen: cleanup makefile
This commit is contained in:
parent
5e2f79a6c2
commit
3f26e05536
15
doc/Makefile
15
doc/Makefile
@ -1,16 +1,13 @@
|
|||||||
|
contiking := ..
|
||||||
basedirs := os arch
|
basedirs := os arch
|
||||||
manuals := $(shell find ./ -name "*.txt")
|
|
||||||
filetypes := -iwholename "*/doc/*.txt"
|
|
||||||
empty :=
|
empty :=
|
||||||
space := $(empty) $(empty)
|
space := $(empty) $(empty)
|
||||||
pwd := $(shell cd ..; pwd)
|
pwd := $(shell cd $(contiking); pwd)
|
||||||
|
|
||||||
# Doxyfile configuration variables
|
# Doxyfile configuration variables
|
||||||
export docdir := .
|
export docdir := .
|
||||||
export docdirs
|
|
||||||
export docsrc
|
|
||||||
export doclatex := NO
|
export doclatex := NO
|
||||||
export docroot := ../
|
export docroot := $(contiking)
|
||||||
|
|
||||||
# Get appropriate root for doxygen path cutoff
|
# Get appropriate root for doxygen path cutoff
|
||||||
ifeq ($(HOST_OS),Windows)
|
ifeq ($(HOST_OS),Windows)
|
||||||
@ -21,12 +18,12 @@ ifeq ($(HOST_OS),Windows)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
docdirs = $(sort $(foreach dir,$(basedirs),${shell find ../${dir} -type d -not -path "*/.*" -not -path "*/obj_*"}))
|
export docdirs = $(sort $(foreach dir,$(basedirs),${shell find $(contiking)/${dir} -type d}))
|
||||||
docsrc = $(docdirs) $(foreach dir,$(docdirs),${shell find $(dir) -type f $(filetypes)}) $(manuals)
|
export docsrc = $(docdirs) $(foreach dir,$(docdirs) .,${shell find $(dir) -type f -name "*.txt"})
|
||||||
|
|
||||||
.PHONY: clean html
|
.PHONY: clean html
|
||||||
|
|
||||||
html:
|
html: clean
|
||||||
@doxygen Doxyfile
|
@doxygen Doxyfile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user