]> gitweb.michael.orlitzky.com - spline3.git/blobdiff - makefile
Fix the "clean" target in the makefile to remove *.hi and *.o files from /tmp.
[spline3.git] / makefile
index a15145d35d115435167b67880cb0c611845a00d0..b284d7ea57fdadabb33af4971b413961eb0f91c0 100644 (file)
--- a/makefile
+++ b/makefile
@@ -4,9 +4,14 @@ GHC_WARNINGS += -fwarn-missing-signatures
 GHC_WARNINGS += -fwarn-name-shadowing
 GHC_WARNINGS += -fwarn-orphans
 GHC_WARNINGS += -fwarn-type-defaults
+GHC_WARNINGS += -fwarn-tabs
+GHC_WARNINGS += -fwarn-incomplete-record-updates
+GHC_WARNINGS += -fwarn-monomorphism-restriction
+GHC_WARNINGS += -fwarn-unused-do-bind
 
 BIN := spline3
-GHC_OPTS := $(GHC_WARNINGS) -odir /tmp -hidir /tmp --make -o bin/${BIN}
+TMPDIR := /tmp
+GHC_OPTS := $(GHC_WARNINGS) -odir $(TMPDIR) -hidir $(TMPDIR) --make -o bin/${BIN}
 
 
 .PHONY : test publish_doc doc src_html hlint
@@ -24,10 +29,8 @@ profile: src/*.hs
 
 clean:
        rm -f bin/$(BIN)
-       rm -f src/*.hi
-       rm -f src/*.o
-       rm -f src/Tests/*.hi
-       rm -f src/Tests/*.o
+       rm -f $(TMPDIR)/*.hi
+       rm -f $(TMPDIR)/*.o
        rm -f *.prof
        rm -rf doc/html/*