From: Siraaj Khandkar Date: Wed, 25 Sep 2013 17:20:39 +0000 (-0400) Subject: Added build and clean recipes. X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=91093fb99712757a1ae5abc3ea4c98cae7c0200f;p=cellular-automata.git Added build and clean recipes. --- diff --git a/polymorphic-life/001/Makefile b/polymorphic-life/001/Makefile new file mode 100644 index 0000000..fa2bbc3 --- /dev/null +++ b/polymorphic-life/001/Makefile @@ -0,0 +1,15 @@ +.PHONY: build clean + +EXE_TYPE := native + +build: + $(eval executable_name := polymorphic_life) + $(eval executable_name_ext := $(executable_name).$(EXE_TYPE)) + @ocamlbuild src/$(executable_name_ext) + @mkdir -p bin/ + @cp _build/src/$(executable_name_ext) bin/$(executable_name) + @rm $(executable_name_ext) + +clean: + @ocamlbuild -clean + @rm -rf bin/