X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=af4b4da34d3cc0d886df0f84708f064c9a992248;hb=40f8bf1514ef4194dab680f60814ed7642bb5ae1;hp=6f15a957a2f246cad3f965de996b1ee4c0307a7a;hpb=878ce4154f4619a5d07c780bf1f76dfd46771df4;p=plewww.git diff --git a/Makefile b/Makefile index 6f15a95..af4b4da 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,14 @@ else +$(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) # make ++foo : idem but verbose, i.e. foo=$(foo)