git://git.onelab.eu
/
plewww.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- minify javascripts with jsmin at compile time
[plewww.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
12b1117
..
af4b4da
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-37,6
+37,13
@@
else
+$(RSYNC) planetlab plekit modules $(SSHURL)/var/www/html/
endif
+$(RSYNC) planetlab plekit modules $(SSHURL)/var/www/html/
endif
+compress:
+ $(foreach file,\
+ $(shell find . -type f -iname "*.js"),\
+ $(shell python jsmin.py < $(file) > $(file).new && mv $(file).new $(file)))
+ @echo "Compressed .js files with jsmin.py"
+
+.PHONY: compress
#################### convenience, for debugging only
# make +foo : prints the value of $(foo)
#################### convenience, for debugging only
# make +foo : prints the value of $(foo)