Added build and clean recipes.
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Sep 2013 17:20:39 +0000 (13:20 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 25 Sep 2013 17:20:39 +0000 (13:20 -0400)
polymorphic-life/001/Makefile [new file with mode: 0644]

diff --git a/polymorphic-life/001/Makefile b/polymorphic-life/001/Makefile
new file mode 100644 (file)
index 0000000..fa2bbc3
--- /dev/null
@@ -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/
This page took 0.020176 seconds and 4 git commands to generate.