From bfc73c05c1be186d50146027f523f7f577d7affe Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 23 Jun 2013 16:44:37 -0600 Subject: js makefiles --- sitestatic/Makefile | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'sitestatic/Makefile') diff --git a/sitestatic/Makefile b/sitestatic/Makefile index f7499d64..e99e3c96 100644 --- a/sitestatic/Makefile +++ b/sitestatic/Makefile @@ -1,9 +1,24 @@ -jqueryversion=1.4.4 -targets=jquery-$(jqueryversion).js jquery-$(jqueryversion).min.js jquery.tablesorter.min.js +include ../common.mk -all: $(targets) .gitignore +jquery-ver=1.8.3 +bootstrap-ver=2.1.1 +tablesorter-ver=2.7 +targets = \ + bootstrap-typeahead \ + jquery-$(jquery-ver) \ + jquery.tablesorter-$(tablesorter-ver) \ + konami -jquery-$(jqueryversion).js: - wget http://code.jquery.com/$@ +target-files=$(addsuffix .js,$(targets)) $(addsuffix .min.js,$(targets)) +all: $(target-files) +clean: + rm -f -- $(target-files) -include js.mk +bootstrap-typeahead.js: %: $(www)/https/raw.github.com/twitter/bootstrap/v$(bootstrap-ver)/js/% + cp $< $@ +jquery-$(jquery-ver).js: %: $(www)/http/code.jquery.com/% + cp $< $@ +jquery.tablesorter-$(tablesorter-ver).js: $(www)/https/raw.github.com/Mottie/tablesorter/v$(tablesorter-ver)/js/jquery.tablesorter.js + cp $< $@ +konami.js: %: $(www)/https/raw.github.com/snaptortoise/konami-js/master/% + cp $< $@ -- cgit v1.2.3-2-g168b