-profile: $(PN).cabal $(SRCS)
- runghc Setup.hs configure --user --enable-executable-profiling --prefix=/
+# 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=/