]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - makefile
Update makefile/cabalfile with better profiling support.
[dead/htsn-import.git] / makefile
index a2327ddde0be85c268a774f7a0825cda75e9e2a0..207770af85709f27903aeefe7c48b661ca24434b 100644 (file)
--- a/makefile
+++ b/makefile
@@ -8,7 +8,10 @@ $(BIN): $(PN).cabal $(SRCS)
        runghc Setup.hs configure --user --prefix=/
        runghc Setup.hs build
 
-profile: $(PN).cabal $(SRCS)
+# The $(BIN) dependency means that we should build once normally
+# before attempting the profiling build (this is required for some
+# reason).
+profile: $(PN).cabal $(SRCS) $(BIN)
        runghc Setup.hs configure --user \
                                   --enable-executable-profiling \
                                   --prefix=/