X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=af4b4da34d3cc0d886df0f84708f064c9a992248;hb=40f8bf1514ef4194dab680f60814ed7642bb5ae1;hp=12b11173ee0041978fab366fdf839a6561db86d4;hpb=1a13d37898223fd91481994eef1a1b940cce735c;p=plewww.git diff --git a/Makefile b/Makefile index 12b1117..af4b4da 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,13 @@ 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)