]> gitweb.michael.orlitzky.com - dead/halcyon.git/blobdiff - makefile
Accept a sendmail_path on the command line.
[dead/halcyon.git] / makefile
index da8807630f2643dfeadcebd923d05ed5d63b6a45..8bd7248952ed1c4f53cf4f2eeb92460be6c5b7b1 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,29 +1,19 @@
-GHC_WARNINGS := -Wall
-GHC_WARNINGS += -fwarn-hi-shadowing
-GHC_WARNINGS += -fwarn-missing-signatures
-GHC_WARNINGS += -fwarn-name-shadowing
-GHC_WARNINGS += -fwarn-orphans
-GHC_WARNINGS += -fwarn-type-defaults
+.PHONY : doc test
 
-BIN=bin/twat
-
-.PHONY : test
-
-all: $(BIN)
-
-$(BIN): src/Twitter/*.hs src/*.hs
-       ghc -O2 $(GHC_WARNINGS) --make -o $(BIN) src/Twitter/*.hs src/*.hs
-
-profile: src/Twitter/*.hs src/*.hs
-       ghc -O2 $(GHC_WARNINGS) -prof -auto-all --make -o $(BIN) src/Twitter/*.hs src/*.hs
+twat: src/*.hs src/Twitter/*.hs
+       runghc Setup.hs clean
+       runghc Setup.hs configure --user
+       runghc Setup.hs build
 
 clean:
-       rm -f $(BIN)
-       rm -f src/*.hi
-       rm -f src/Twitter/*.hi
-       rm -f src/*.o
-       rm -f src/Twitter/*.o
-       rm -f *.prof
+       runghc Setup.hs clean
 
 test:
        runghc -i"src" test/TestSuite.hs
+
+# Neither 'haddock' nor 'hscolour' seem to work properly.
+doc:
+       runghc Setup.hs hscolour --executables
+       runghc Setup.hs haddock --internal    \
+                               --executables \
+                               --hyperlink-source