summaryrefslogtreecommitdiff
path: root/common.mk
diff options
context:
space:
mode:
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