From ebe42fbdac2b5f88afa962a98aa08e8322326ba1 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 10 Jul 2013 15:34:58 +0000 Subject: [PATCH] working makefile to create symlinks --- experiments/spclient/Makefile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) 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!" -- 1.7.10.4