projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b15a6
)
Generalise rule to make %.min.js
author
Mike Taylor
<mike@indexdata.com>
Thu, 19 Dec 2013 13:22:36 +0000
(13:22 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 19 Dec 2013 13:22:36 +0000
(13:22 +0000)
mkws-js-min now depends on both mkws.min.js and mkws-complete.min.js
tools/htdocs/Makefile
patch
|
blob
|
history
diff --git
a/tools/htdocs/Makefile
b/tools/htdocs/Makefile
index
a902133
..
0276b27
100644
(file)
--- a/
tools/htdocs/Makefile
+++ b/
tools/htdocs/Makefile
@@
-66,9
+66,11
@@
mkws-js ${MKWS_JS}: Makefile mkws.js ${JQUERY_JSON_FILE} ${JQUERY_FILE} ${HANDLE
) > ${MKWS_JS}.new
mv -f ${MKWS_JS}.new ${MKWS_JS}
-mkws-js-min mkws-complete.min.js: ${MKWS_JS}
- ${JSMIN} ${MKWS_JS} > mkws-complete.min.js.new
- mv -f mkws-complete.min.js.new mkws-complete.min.js
+mkws-js-min: mkws.min.js mkws-complete.min.js
+
+%.min.js: %.js
+ ${JSMIN} $? > $@.new
+ mv -f $@.new $@
${JQUERY_JSON_FILE}:
curl -sSf ${JQUERY_JSON_URL} -o $@