2016-02-24 17:37:31 +01:00
|
|
|
RIOTBASE=$(shell git rev-parse --show-toplevel)
|
|
|
|
# Generate list of quoted absolute include paths. Evaluated in riot.doxyfile.
|
|
|
|
export STRIP_FROM_INC_PATH_LIST=$(shell \
|
2017-01-17 14:43:02 +01:00
|
|
|
git ls-tree -dr --full-tree --name-only HEAD core drivers sys |\
|
2016-02-24 17:37:31 +01:00
|
|
|
grep '/include$$' |\
|
|
|
|
sed 's/.*/\"$(subst /,\/,${RIOTBASE})\/\0\"/')
|
|
|
|
|
2015-07-16 15:42:28 +02:00
|
|
|
.PHONY: doc
|
|
|
|
doc: html
|
|
|
|
|
|
|
|
# by marking html as phony we force make to re-run Doxygen even if the directory exists.
|
|
|
|
.PHONY: html
|
2017-05-11 14:37:37 +02:00
|
|
|
html: src/css/riot.css src/changelog.md
|
2015-07-20 13:43:13 +02:00
|
|
|
( cat riot.doxyfile ; echo "GENERATE_HTML = yes" ) | doxygen -
|
|
|
|
|
|
|
|
.PHONY: man
|
2017-05-11 14:37:37 +02:00
|
|
|
man: src/changelog.md
|
2015-07-20 13:43:13 +02:00
|
|
|
( cat riot.doxyfile ; echo "GENERATE_MAN = yes" ) | doxygen -
|
|
|
|
|
2017-04-14 02:56:27 +02:00
|
|
|
ifneq (,$(shell which lessc))
|
|
|
|
# use lessc (http://lesscss.org/#using-less) for compiling CSS
|
|
|
|
src/css/riot.css: src/css/riot.less src/css/variables.less
|
|
|
|
@lessc $< $@
|
|
|
|
|
|
|
|
src/css/variables.less: src/config.json
|
|
|
|
@grep "^\s*\"@" $< | sed -e 's/^\s*"//g' -e 's/":\s*"/: /g' \
|
|
|
|
-e 's/",\?$$/;/g' -e 's/\\"/"/g' > $@
|
|
|
|
endif
|
|
|
|
|
2017-05-11 14:37:37 +02:00
|
|
|
src/changelog.md: src/changelog.md.tmp ../../release-notes.txt
|
|
|
|
@./generate-changelog.py $+ $@
|
|
|
|
|
2015-07-20 13:43:13 +02:00
|
|
|
.PHONY:
|
2017-05-11 14:37:37 +02:00
|
|
|
latex: src/changelog.md
|
2015-07-20 13:43:13 +02:00
|
|
|
( cat riot.doxyfile ; echo "GENERATE_LATEX= yes" ) | doxygen -
|
2013-02-08 19:34:07 +01:00
|
|
|
|
2013-04-02 02:02:58 +02:00
|
|
|
clean:
|
2017-05-11 14:37:37 +02:00
|
|
|
-@rm -rf latex man html doxygen_objdb_*.tmp doxygen_entrydb_*.tmp src/changelog.md
|