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
# concatenated module files
bin/fc.%: bin/
devTools/concatFiles.sh $*/ '*.$*' $@
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
mv submodules/sugarcube-2/build/twine2/sugarcube-2/format.js devTools/tweeGo/storyFormats/sugarcube-2/format.js
(cd submodules/sugarcube-2/ && git diff master fc > sugarcube-fc-changes.patch)
mv submodules/sugarcube-2/sugarcube-fc-changes.patch devNotes/"sugarcube stuff"/sugarcube-fc-changes.patch
.PHONY: all sanity git injectGitCommitHash sugarcube