summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 16:44:37 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-07-14 14:43:10 -0600
commitbfc73c05c1be186d50146027f523f7f577d7affe (patch)
tree0610ab5aa7c811a77eba0f96fd9e28def314645c /common.mk
parent66ebed7043371ba52138e42335509116529f928f (diff)
js makefiles
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk21
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