2017-10-29 11:56:39 +00:00
|
|
|
contiking := ../..
|
2017-10-06 11:18:28 +00:00
|
|
|
basedirs := os arch
|
2008-04-28 11:36:59 +00:00
|
|
|
empty :=
|
|
|
|
space := $(empty) $(empty)
|
2017-10-29 11:54:58 +00:00
|
|
|
pwd := $(shell cd $(contiking); pwd)
|
2008-04-28 11:36:59 +00:00
|
|
|
|
|
|
|
# Doxyfile configuration variables
|
|
|
|
export docdir := .
|
|
|
|
export doclatex := NO
|
2017-10-29 11:54:58 +00:00
|
|
|
export docroot := $(contiking)
|
2008-04-28 11:36:59 +00:00
|
|
|
|
|
|
|
# Get appropriate root for doxygen path cutoff
|
2012-02-21 23:57:22 +00:00
|
|
|
ifeq ($(HOST_OS),Windows)
|
|
|
|
# on windows need to convert cygwin path to windows path for doxygen
|
|
|
|
ifneq (,$(findstring cygdrive,$(pwd)))
|
|
|
|
cygroot = $(subst /,$(space),$(patsubst /cygdrive/%,%,$(pwd)))
|
|
|
|
export docroot = $(firstword $(cygroot)):/$(subst $(space),/,$(wordlist 2,$(words $(cygroot)),$(cygroot)))
|
|
|
|
endif
|
2008-04-28 11:36:59 +00:00
|
|
|
endif
|
|
|
|
|
2017-10-29 11:54:58 +00:00
|
|
|
export docdirs = $(sort $(foreach dir,$(basedirs),${shell find $(contiking)/${dir} -type d}))
|
|
|
|
export docsrc = $(docdirs) $(foreach dir,$(docdirs) .,${shell find $(dir) -type f -name "*.txt"})
|
2008-04-28 11:36:59 +00:00
|
|
|
|
2017-10-06 11:18:28 +00:00
|
|
|
.PHONY: clean html
|
2006-06-17 22:41:10 +00:00
|
|
|
|
2017-10-29 11:54:58 +00:00
|
|
|
html: clean
|
2008-04-28 11:36:59 +00:00
|
|
|
@doxygen Doxyfile
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "> Cleaning Documentation"
|
|
|
|
@$(RM) -r "$(docdir)/html"
|
|
|
|
@$(RM) -r "doxygen.log"
|
|
|
|
@echo " done."
|