Newer
Older
export TWEEGO_PATH=devTools/tweeGo/storyFormats
TWEEGO := $(shell command -v tweego 2>/dev/null)
ifndef TWEEGO
uname := $(shell uname -s)
arch := $(shell uname -m)
arch := $(shell if test $(arch) = x86_64 -o $(arch) = amd64; then echo 64; else echo 32; fi)
ifeq ($(arch),64)
TWEEGO := devTools/tweeGo/tweego_nix64
TWEEGO := devTools/tweeGo/tweego_nix86
ifeq ($(arch),64)
TWEEGO := devTools/tweeGo/tweego_osx64
TWEEGO := devTools/tweeGo/tweego_osx86
git: bin/FC_pregmod_$(HASH).html bin/resources
rm src/002-config/fc-version.js.commitHash.js
bin/fc.js: bin/
devTools/concatFiles.sh js/ '*.js' $@
$(TWEEGO) --module=bin/fc.js --head devTools/head.html src/ > $@
rm -f bin/fc.js
printf "App.Version.commitHash = '%s';\n" $(COMMIT) > src/002-config/fc-version.js.commitHash.js