Skip to content
Snippets Groups Projects
Commit d01d91d3 authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

doxygen: Use lesscpy if lessc is not found

parent 2d5d42a5
No related branches found
No related tags found
No related merge requests found
......@@ -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' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment