]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Makefile
Many improvements
[Lucu.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..80beeeb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+CABAL_FILE = Lucu.cabal
+GHC = ghc
+WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld
+
+run: build
+       @echo ".:.:. Let's go .:.:."
+       $(WHAT_TO_RUN)
+
+build: .setup-config Setup
+       ./Setup build
+
+.setup-config: $(CABAL_FILE) Setup
+       ./Setup configure
+
+Setup: Setup.hs
+       $(GHC) --make Setup
+
+clean:
+       rm -rf dist Setup Setup.o Setup.hi .setup-config
+       find . -name '*~' -exec rm -f {} \;
+
+.PHONY: run build clean
\ No newline at end of file