Skip to content
Snippets Groups Projects
Commit dc8d1a4f authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'vas-build' into 'pregmod-master'

port build system to make

See merge request pregmodfan/fc-pregmod!4610
parents 743cf5a8 5dd3b683
Branches
Tags
No related merge requests found
Makefile 0 → 100644
MAKEFLAGS += -r
export TWEEGO_PATH=devTools/tweeGo/storyFormats
HASH := $(shell git rev-list -n 1 --abbrev-commit HEAD)
COMMIT := $(shell git rev-parse --short HEAD)
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)
TWEEGO := $(shell command -v tweego || echo "$$?")
ifeq ($(TWEEGO),1)
ifeq ($(uname),Linux)
ifeq ($(arch),64)
TWEEGO := devTools/tweeGo/tweego_nix64
else
TWEEGO := devTools/tweeGo/tweego_nix86
endif
else ifeq ($(uname),Darwin)
ifeq ($(arch),64)
TWEEGO := devTools/tweeGo/tweego_osx64
else
TWEEGO := devTools/tweeGo/tweego_osx86
endif
endif
endif
all: bin/FC_pregmod.html bin/resources
git: bin/FC_pregmod_$(HASH).html bin/resources
bin/resources: resources
test -L "$@" || ln -s "../$<" bin/
bin/%.html: bin/tmp
git checkout -- src/gui/mainMenu/AlphaDisclaimer.tw
mv $< $@
bin/tmp: bin/ src/gui/mainMenu/AlphaDisclaimer.tw
$(TWEEGO) src/ --head devTools/head.html > $@
src/gui/mainMenu/AlphaDisclaimer.tw:
sed -Ei "s/build .releaseID/\0 commit $(COMMIT)/" $@
bin/:
mkdir -p $@
sanity:
./sanityCheck.sh
jsanity:
./sanityCheck.sh java
.PHONY: all sanity jsanity git
......@@ -48,6 +48,7 @@ How to mod (basic doc):
Ensure executable permission on file "devTools/tweeGo/tweego" (not tweego.exe!)
Ensure executable permission on file "compile.sh"
In the root dir of sources (where you see src, devTools, bin...) run command "./compile.sh" from console
Alternatively, if you have make installed, run "make all" in the root directory
Mac:
Not supported directly (I don't have access to Mac for testing).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment