diff --git a/Makefile b/Makefile index 151b964..18bf987 100644 --- a/Makefile +++ b/Makefile @@ -1,69 +1,95 @@ SRC_DIR = src -EXAMPLES_DIR = examples BUILD_DIR = build DIST_DIR = dist - -JS_SRC_FILES = \ - ${SRC_DIR}/main.js \ - ${SRC_DIR}/grid.js \ - ${SRC_DIR}/agenda.js \ - ${SRC_DIR}/view.js \ - ${SRC_DIR}/selection_util.js \ - ${SRC_DIR}/util.js - -CSS_SRC_FILES = \ - ${SRC_DIR}/css/main.css \ - ${SRC_DIR}/css/grid.css \ - ${SRC_DIR}/css/agenda.css - +DEMOS_DIR = demos OTHER_FILES = \ - ${SRC_DIR}/jquery \ - changelog.txt - -VER = `cat version.txt` + changelog.txt \ + MIT-LICENSE.txt \ + GPL-LICENSE.txt + +VER = $$(cat version.txt) VER_SED = sed s/@VERSION/"${VER}"/ -DATE = `git log -1 | grep Date: | sed 's/[^:]*: *//'` +DATE = $$(git log -1 --pretty=format:%ad) DATE_SED = sed s/@DATE/"${DATE}"/ +JQ = $$(sed -n "s/.*JQUERY\s*=\s*[\"']\(.*\)[\"'].*/\1/p" "${SRC_DIR}/_loader.js") +JQUI = $$(sed -n "s/.*JQUERY_UI\s*=\s*[\"']\(.*\)[\"'].*/\1/p" "${SRC_DIR}/_loader.js") + +DEMO_FILES = $$(cd ${DEMOS_DIR}; find . -mindepth 1 -maxdepth 1 -type f) +DEMO_SUBDIRS = $$(cd ${DEMOS_DIR}; find . -mindepth 1 -maxdepth 1 -type d) +DEMO_RE = \( - - - - - - - - - + + +]]--> - - - - - - - - - + + +]]--> - - - - - - - - - + + +]]--> - - - - - - - - - + + +]]--> + + + + + +
+ + + +