mirror of
https://github.com/writeas/writefreely
synced 2025-01-05 20:47:30 +01:00
3c104cb3aa
previously the checks were explicit locations which does not work when using something like nvm to manage node packages and versions. this checks for the executable and sets the script variable LESSC to the full path of the one found. if none was found the make command will error.
22 lines
471 B
Makefile
22 lines
471 B
Makefile
LESSC := $(shell command -v lessc 2> /dev/null)
|
|
|
|
ifndef LESSC
|
|
$(error "less is not installed, please run install-less.sh")
|
|
endif
|
|
|
|
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
|