2018-11-08 04:33:13 +01:00
|
|
|
ifeq ($(shell which lessc),/usr/bin/lessc)
|
|
|
|
LESSC=/usr/bin/lessc
|
2019-04-30 19:40:00 +02:00
|
|
|
else ifeq ($(shell which lessc),/usr/local/bin/lessc)
|
|
|
|
LESSC=/usr/local/bin/lessc
|
2018-11-08 04:33:13 +01:00
|
|
|
else
|
|
|
|
LESSC=node_modules/.bin/lessc
|
|
|
|
endif
|
|
|
|
export LESSC
|
|
|
|
|
|
|
|
CSSDIR=../static/css/
|
|
|
|
|
|
|
|
all :
|
|
|
|
$(LESSC) app.less --clean-css="--s1 --advanced" $(CSSDIR)write.css
|
|
|
|
$(LESSC) fonts.less --clean-css="--s1 --advanced" $(CSSDIR)fonts.css
|
|
|
|
$(LESSC) icons.less --clean-css="--s1 --advanced" $(CSSDIR)icons.css
|
|
|
|
|
|
|
|
install :
|
|
|
|
./install-less.sh
|
|
|
|
$(MAKE) all
|
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -f write.css
|
|
|
|
rm -f fonts.css
|
|
|
|
rm -f icons.css
|