Page MenuHomeMusing Studio

No OneTemporary

diff --git a/less/Makefile b/less/Makefile
index e81258a..5e51b4d 100644
--- a/less/Makefile
+++ b/less/Makefile
@@ -1,26 +1,21 @@
-ifeq ($(shell which lessc),/usr/bin/lessc)
- LESSC=/usr/bin/lessc
-else ifeq ($(shell which lessc),/usr/local/bin/lessc)
- LESSC=/usr/local/bin/lessc
-else ifeq ($(shell which lessc),/bin/lessc)
- LESSC=/bin/lessc
-else
- LESSC=node_modules/.bin/lessc
+LESSC := $(shell command -v lessc 2> /dev/null)
+
+ifndef LESSC
+ $(error "less is not installed, please run install-less.sh")
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

File Metadata

Mime Type
text/x-diff
Expires
Fri, Jan 31, 9:50 AM (4 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3145703

Event Timeline