diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-23 16:44:37 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 14:43:10 -0600 |
commit | bfc73c05c1be186d50146027f523f7f577d7affe (patch) | |
tree | 0610ab5aa7c811a77eba0f96fd9e28def314645c /common.mk | |
parent | 66ebed7043371ba52138e42335509116529f928f (diff) |
js makefiles
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common.mk b/common.mk new file mode 100644 index 00000000..0065e1af --- /dev/null +++ b/common.mk @@ -0,0 +1,21 @@ +topdir := $(dir $(lastword $(MAKEFILE_LIST))) +www = $(topdir)/../web-cache/www + +JSMIN = cp $1 $2 +#JSMIN = compiler $1 +#JSMIN = uglify-js -nc $1 > $2 + +%.min.js: %.js + $(call JSMIN,$<,$@) + +$(www)/http/%: + mkdir -p '$(@D)' + wget 'http://$*' -O '$@' + touch '$@' + +$(www)/https/%: + mkdir -p '$(@D)' + wget 'http://$*' -O '$@' + touch '$@' + +.PHONY: PHONY |