Hi!
I attached a patch that does some additional cleanups to a build tree
(equiv.: makes the packager's life easier ;-))
I wasn't sure, which files should go into $(CLEAN_FILES) and which into
$(MAINTAINER_CLEAN_FILES), maybe someone could have a look at my choice.
regarding the perl scripts: they're modules, i.e. not standalone-executable,
so there shouldn't be the '#!'-hack on top of them. It does no harm, but
causes two Debian-related errors, which go away when removing the line...
Cheers,
Michael
--
* Mechanical Engineering is like looking for a black cat in a lighted room.
* Systems Engineering is like looking for a black cat in a dark room in
which there is no cat and someone yells "I got it!"
--- ghc4-4.04.orig/glafp-utils/sgmlverb/Makefile
+++ ghc4-4.04/glafp-utils/sgmlverb/Makefile
@@ -7,6 +7,8 @@
override SRC_FLEX_OPTS=-8
+CLEAN_FILES += sgmlverb.c
+
#
# For src distributions, include flex output.
#
--- ghc4-4.04.orig/mk/target.mk
+++ ghc4-4.04/mk/target.mk
@@ -921,6 +921,7 @@
ps :: $(SGML_PS)
CLEAN_FILES += $(SGML_TEXT) $(SGML_DOC)*.html $(SGML_PS) $(SGML_DVI)
+MOSTLY_CLEAN_FILES += $(patsubst %.vsgml, %.sgml, $(VSGML_SRCS)) #can't use
+$(SGML_SRCS), they're maybe needed
endif
--- ghc4-4.04.orig/ghc/compiler/Makefile
+++ ghc4-4.04/ghc/compiler/Makefile
@@ -287,6 +287,8 @@
# Extra tidy, remove the .hc files (if you've got them).
MAINTAINER_CLEAN_FILES += $(wildcard */*.hc)
+# Remove happy generated files
+MAINTAINER_CLEAN_FILES += $(patsubst %.y,%.hs,$(wildcard */*.y))
#-
--- ghc4-4.04.orig/ghc/docs/Makefile
+++ ghc4-4.04/ghc/docs/Makefile
@@ -6,6 +6,6 @@
#
export WAYS=
-SUBDIRS = users_guide
+SUBDIRS = libraries users_guide
include $(TOP)/mk/target.mk
--- ghc4-4.04.orig/ghc/utils/stat2resid/parse-gcstats.prl
+++ ghc4-4.04/ghc/utils/stat2resid/parse-gcstats.prl
@@ -1,4 +1,3 @@
-#!/local/sun4/bin/perl
#
# Subroutines to parses a ghc Garbage Collection stats file
#
--- ghc4-4.04.orig/ghc/utils/stat2resid/process-gcstats.prl
+++ ghc4-4.04/ghc/utils/stat2resid/process-gcstats.prl
@@ -1,4 +1,3 @@
-#!/local/sun4/bin/perl
#
# Subroutines which derive information from
# ghc garbage collection stats -- %gcstat