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=/
doc: $(PN).cabal $(SRCS)
runghc Setup.hs configure --user --prefix=/
- runghc Setup.hs hscolour --executables
- runghc Setup.hs haddock --internal \
- --executables \
- --hyperlink-source
+ runghc Setup.hs hscolour --all
+ runghc Setup.hs haddock --all \
+ --hyperlink-source \
+ --haddock-options="--ignore-all-exports"
#
# Testing.
#
dist:
runghc Setup.hs configure --prefix=/
- runghc Setup.hs sdist
+ TAR_OPTIONS="--format=ustar" runghc Setup.hs sdist
hlint:
hlint --ignore="Use camelCase" \