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' $@
bin/fc.css: bin/
devTools/concatFiles.sh css/ '*.css' $@
bin/tmp: bin/fc.js bin/fc.css injectGitCommitHash
$(TWEEGO) --module=bin/fc.js --module=bin/fc.css --head resources/raster/favicon/arcologyVector.html src/ > $@
rm -f bin/fc.css
printf "App.Version.commitHash = '%s';\n" $(COMMIT) > src/002-config/fc-version.js.commitHash.js