[comp.os.minix] 1.5.0 make bug

williams@umaxc.weeg.uiowa.edu (Kent Williams) (02/14/90)

The 1.5.0 make appears to be broken in the following way:

$$ expands to nothing

I noticed this when I was building the assembly-code string library functions.

The makefile has a rule like this:

.x.s:
		cpp $(CFLAGS) $*.x | sed '/^$$/d' | libpack > $*.s

Which the old make did this with:

		cpp -DJUNKITY_JUNK strcmp.x | sed '/^$/d' | libpack > strcmp.s

And the new improved make did this:

		cpp -DJUNKITY_JUNK strcmp.x | sed '/^/d' | libpack > strcmp.s

which gives you object files of zero length, which cheerfully get added to
your library, without ar or anybody complaining.  The only problem is that
there are only one or two programs in the entire minix distribution that don't
call string functions!

If this has been fixed, or if this problem doesn't exist if you do a better job
than I did patching the source, mail me a reply.

B.T.W. I think make still complains when it gets SIGTERM's.  This probably
has to do with _NSIG == SIGTERM problems, as seen in the shell.




--
                               
Kent Williams                  "What's an Address Bus?  How do Icons work?" 
williams@umaxc.weeg.uiowa.edu  -- Advertisement for Time-Life Books