🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #330

gnu-make bug

#330
From: Jeff.Rosenfeld
Date: Sun, 30 Jul 1989 19:01
38 lines
1386 bytes
Greetings.
In gnu-make version 3.05 the variable $(MAKELEVEL) does not get initialized
to 0 in the top-level makefile; it is initially empty although it does
get set to the proper values in sub-makes. A trivial makefile to demonstrate
this is:

------------
all:
	@echo $(MAKELEVEL)
------------

Make echos a blank line instead of the zero it should print.


I found another bug, too: the subst function doesn't aopear to understand
spaces in the from string (this is still, of course, with version 3.05).
Here's the makefile I am trying to use:

-------------
TMP  := $(MAKE)
MAKE := $(subst X=$(X),,$(MAKE))

all:
	@echo $(TMP)
	$(MAKE) foo

foo:
	@echo $(MAKE)
---------------

The command: make all X='a'
works as expected; the submake doesn't attempt to define X on the command line.

The command: make all X='a b'
however, doesn't kill the definition of X.

Thank you for any attention you can give these problems,
		- Jeff Rosenfeld, jdr@andrew.cmu.edu.
Technical Details
Message-ID: <8907301922.AA01924@AENEAS.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!FAA.SPEECH.CS.CMU.EDU!Jeff.Rosenfeld

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!FAA.SPEECH.CS.CMU.EDU!Jeff.Rosenfeld
From: Jeff.Rosenfeld@FAA.SPEECH.CS.CMU.EDU
Newsgroups: gnu.utils.bug
Subject: gnu-make bug
Message-ID: <8907301922.AA01924@AENEAS.MIT.EDU>
Date: 30 Jul 89 19:01:53 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 38