1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/doc/doxygen/Makefile

46 lines
1.4 KiB
Makefile
Raw Normal View History

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 \
git ls-tree -dr --full-tree --name-only HEAD core drivers sys |\
grep '/include$$' |\
sed 's/.*/\"$(subst /,\/,$(RIOTBASE))\/\0\"/')
# use lessc (http://lesscss.org/#using-less) for compiling CSS
# It can also be installed in ubuntu with the `node-less` package
LESSC ?= lessc
2023-01-31 17:11:01 +01:00
DOCUMENTATION_FORMAT ?= html
2015-07-16 15:42:28 +02:00
.PHONY: doc
2023-01-31 17:11:01 +01:00
doc: $(DOCUMENTATION_FORMAT)
2015-07-16 15:42:28 +02:00
# by marking html as phony we force make to re-run Doxygen even if the directory exists.
.PHONY: html
html: src/changelog.md
( cat riot.doxyfile ; echo "GENERATE_HTML = yes" ) | doxygen -
2023-01-31 17:11:01 +01:00
.PHONY: check
check: src/changelog.md
( cat riot.doxyfile) | doxygen -
.PHONY: man
man: src/changelog.md
( cat riot.doxyfile ; echo "GENERATE_MAN = yes" ) | doxygen -
2017-04-14 02:56:27 +02:00
src/css/riot.css: src/css/riot.less src/css/variables.less
@$(LESSC) $< $@
2017-04-14 02:56:27 +02:00
src/css/variables.less: src/config.json
@grep "^\s*\"@" $< | sed -e 's/^\s*"//g' -e 's/":\s*"/: /g' \
-e 's/",\?$$/;/g' -e 's/\\"/"/g' > $@
src/changelog.md: src/changelog.md.tmp ../../release-notes.txt
@./generate-changelog.py $+ $@
.PHONY:
latex: src/changelog.md
( cat riot.doxyfile ; echo "GENERATE_LATEX= yes" ) | doxygen -
clean:
-@rm -rf latex man html doxygen_objdb_*.tmp doxygen_entrydb_*.tmp src/changelog.md