[Pkg-haskell-maintainers] Bug#575128: Bug#575128: haskell-devscripts: hlibrary.mk should do cleanup

Marco Túlio Gontijo e Silva marcot at debian.org
Tue Mar 23 20:39:43 UTC 2010


Hi Jonas.

Excerpts from Jonas Smedegaard's message of Ter Mar 23 14:27:20 -0300 2010:
(...)
> As subject says, hlibrary.mk really should invoke the Haskell cleanup
> routine.
> 
> For inspiration, the following apparently was sufficient for the pandoc
> package:
> 
> 
> DEB_PHONY_RULES += haskell-clean
> cleanbuilddir:: haskell-clean
> haskell-clean:
>     [ ! -x "$(DEB_SETUP_BIN_NAME)" ] || $(DEB_SETUP_BIN_NAME) clean

Isn't the commands in clean:: enough?

clean::
	rm -rf dist dist-ghc6 dist-hugs $(DEB_SETUP_BIN_NAME) Setup.hi Setup.ho Setup.o .*config*
	rm -f build-ghc6-stamp build-hugs-stamp build-haddock-stamp
	rm -rf debian/tmp-inst-ghc6
	rm -f $(MAKEFILE)
	rm -rf debian/dh_haskell_shlibdeps

Greetings.
(...)
-- 
marcot
http://wiki.debian.org/MarcoSilva





More information about the Pkg-haskell-maintainers mailing list