-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 722 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CC=js /opt/lessc/bin/lessc
YUI_COMPRESSOR = java -jar /opt/yuicompressor/yuicompressor-2.4.6.jar
YUI_COMPRESSOR_FLAGS = --charset utf-8 --type css
CSS_FILES = $(filter-out %.min.css,$(wildcard \
css/*.css \
))
LESS_FILES = $(filter-out %.css,$(wildcard \
css/*.less \
))
CSS_GENERATED = $(LESS_FILES:.less=.css)
CSS_MINIFIED = $(CSS_FILES:.css=.min.css)
less: $(LESS_FILES) $(CSS_GENERATED)
minify: $(CSS_FILES) $(CSS_MINIFIED)
%.css: %.less
@echo '==> Lessing $<'
$(CC) $< >$@
@echo
%.min.css: %.css
@echo '==> Minifying $<'
$(YUI_COMPRESSOR) $(YUI_COMPRESSOR_FLAGS) --type css $< >$@
@echo
clean:
rm -f $(CSS_MINIFIED) $(CSS_GENERATED)
# target: help - Displays help.
help:
@egrep "^# target:" Makefile