diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..28a8f3496dde4c399d6e19ae54fd44697c90482d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,51 @@
+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
diff --git a/README.md b/README.md
index 3440d8c0eaa3915c788fcd6eda18a4bbf704497d..ffa0d61f432af99c0d139da3d75c551da241aff6 100644
--- a/README.md
+++ b/README.md
@@ -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).