add clean target, build ${MKWS_JS} on demand
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 24 Jun 2013 14:36:43 +0000 (14:36 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 24 Jun 2013 14:36:43 +0000 (14:36 +0000)
experiments/spclient/Makefile

index f8eb197..8cbaf49 100644 (file)
@@ -2,17 +2,20 @@
 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
 #
 
-all: mkws-js
-
 MKWS_JS=       mkws.2.js
+all: ${MKWS_JS}
 
-mkws-js: mkws.js
+mkws-js ${MKWS_JS}: mkws.js
        ( curl -sSf http://code.jquery.com/jquery-1.10.0.min.js; \
          cat ../../../libjs-pz2/pz2api.1.js mkws.js ) > ${MKWS_JS}.new 
        mv -f ${MKWS_JS}.new ${MKWS_JS}
 
+distclean: clean
+clean:
+       rm -f ${MKWS_JS}
+
 help:
-       @echo "make [ help | mkws-js ]"
+       @echo "make [ help | mkws-js | clean ]"
        @echo ""
        @echo "Please check ./README file too!"