From: Wolfram Schneider Date: Wed, 10 Jul 2013 15:34:58 +0000 (+0000) Subject: working makefile to create symlinks X-Git-Tag: 0.9.1~273 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=ebe42fbdac2b5f88afa962a98aa08e8322326ba1;p=mkws-moved-to-github.git working makefile to create symlinks --- diff --git a/experiments/spclient/Makefile b/experiments/spclient/Makefile index 38d83f4..bca6f9e 100644 --- a/experiments/spclient/Makefile +++ b/experiments/spclient/Makefile @@ -2,22 +2,20 @@ # Copyright (c) 2013 IndexData ApS. http://indexdata.com # -MKWS_JS= mkws-complete.js -all: ${MKWS_JS} - -mkws-js ${MKWS_JS}: ../../../libjs-pz2/pz2api.1.js mkws.js - ( echo "/* created at: $$(date)"; \ - echo " mkws.js GIT id: $$(git log mkws.js | head -n 1 | perl -npe 's,\S+\s+,,') */"; \ - 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} +ALL= mkws.js mkwsStyle.css +all: $(ALL) distclean: clean clean: - rm -f ${MKWS_JS} + rm -f ${ALL} libjs-pz2 + +$(ALL): libjs-pz2 + ln -sf ../../tools/htdocs/$@ . + +libjs-pz2: + ln -fs ../../../$@ . help: - @echo "make [ help | mkws-js | clean ]" + @echo "make [ help | links | clean ]" @echo "" - @echo "Please check ./README file too!"