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

doxygen: Use lesscpy if lessc is not found

This commit is contained in:
Joakim Nohlgård 2017-09-15 09:13:38 +02:00
parent 2d5d42a57b
commit d01d91d3c3

View File

@ -5,6 +5,16 @@ export STRIP_FROM_INC_PATH_LIST=$(shell \
grep '/include$$' |\
sed 's/.*/\"$(subst /,\/,${RIOTBASE})\/\0\"/')
# use lessc (http://lesscss.org/#using-less) for compiling CSS, alternatively
# fall back to lesscpy (https://github.com/lesscpy/lesscpy)
ifeq (,$(LESSC))
ifneq (,$(shell command -v lessc 2>/dev/null))
LESSC=lessc
else ifneq (,$(shell command -v lesscpy 2>/dev/null))
LESSC=lesscpy
endif
endif
.PHONY: doc
doc: html
@ -17,10 +27,9 @@ html: src/css/riot.css src/changelog.md
man: src/changelog.md
( cat riot.doxyfile ; echo "GENERATE_MAN = yes" ) | doxygen -
ifneq (,$(shell which lessc))
# use lessc (http://lesscss.org/#using-less) for compiling CSS
ifneq (,$(LESSC))
src/css/riot.css: src/css/riot.less src/css/variables.less
@lessc $< $@
@$(LESSC) $< $@
src/css/variables.less: src/config.json
@grep "^\s*\"@" $< | sed -e 's/^\s*"//g' -e 's/":\s*"/: /g' \