From: Michael Orlitzky Date: Mon, 22 Aug 2011 19:38:24 +0000 (-0400) Subject: Fix the "clean" target in the makefile to remove *.hi and *.o files from /tmp. X-Git-Tag: 0.0.1~237 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=spline3.git;a=commitdiff_plain;h=49e04554c05717ed3828d4f815a24eeeb01e58e3 Fix the "clean" target in the makefile to remove *.hi and *.o files from /tmp. --- diff --git a/makefile b/makefile index 7523e3a..b284d7e 100644 --- a/makefile +++ b/makefile @@ -10,7 +10,8 @@ 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 @@ -28,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/*