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:
6475389
)
Add new "install" and "uninstall" rules.
author
Mike Taylor
<mike@indexdata.com>
Tue, 25 Mar 2014 17:15:48 +0000
(17:15 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 25 Mar 2014 17:15:48 +0000
(17:15 +0000)
src/Makefile
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index
de56c71
..
b531df8
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-19,6
+19,17
@@
PP2_FILE = pz2.js
INSTALLABLE = handlebars-v1.1.2.js jquery-1.10.0.min.js \
jquery.json-2.4.js mkws-complete.js mkws-complete.min.js \
mkws.min.js pz2.js
+INSTALLED = $(INSTALLABLE:%=../tools/htdocs/%)
+
+install: $(INSTALLED)
+
+uninstall:
+ rm -f $(INSTALLED)
+
+../tools/htdocs/%: %
+ rm -f $@
+ cp -p $? $@
+ chmod -w $@
all: mkws.min.js mkws-complete.min.js