Makefile cleanups

1999-07-12 Thread Michael Weber

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



Re: Problem with 4.03 FFI on Sparc?

1999-07-12 Thread Manuel M. T. Chakravarty

Michael Hobbs [EMAIL PROTECTED] wrote,

 I wouldn't mind working on this, but I know very little about the SPARC
 architecture, or the calling conventions. (I don't even know if the
 stack grows up or down.) I took a look at the assembly output of gcc and
 got an idea of what's going on, but I can't be sure. Does anyone know
 where I can find some [free online] information about SPARC assembly?
 Particularly, in relation for use with `gas' and using Solaris/gcc
 calling conventions.

I only have a hardcopy of the SPARC assembler documentation
and don't know of any online documentation, but I also have
some experience with SPARC assembler, as I have once written
a runtime system, which included some routines in SPARC
assembler.[1]  So, I guess, together we should be able to
handle this.

 P.S. I may not respond for a couple weeks. I'm going on vacation. :)

Just get in contact, when you return.

Simon, Sigbjoern  Simon, is there any other i386 specific
code in the FFI that has to be ported for the thing to work
on a SPARC?

Manuel

[1] For the curious, it was the runtime support for the FFI
of a combined functional logic language.  However, I
have to admit that it didn't do things as weird as
`Adaptor.c'.