|
123456789101112131415161718192021222324 |
- MAKEJS := uglifyjs --compress
- MAKECSS := postcss -u cssnano --no-map
-
- .PHONY: all
-
- .INTERMEDIATE: static/style.tmp.css
-
- all: js css
-
- js: static/script.min.js
-
- css: static/style.min.css static/api.min.css
-
- static/script.min.js: static/script.js
- $(MAKEJS) -o $@ -- $^
-
- static/style.tmp.css: static/css/*.css
- cat $^ > $@
-
- static/style.min.css: static/style.tmp.css
- $(MAKECSS) -o $@ $^
-
- static/api.min.css: static/api.css
- $(MAKECSS) -o $@ $^
|