🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #5110

Re: Looking for a make version to better support software versions

#5110
From: Wm E. Davidsen Jr
Date: Fri, 29 Dec 1989 16:24
22 lines
1330 bytes
  You can sort of do this now. You can put the defines in a separate
header file and have your main header file include them, setting
dependencies for each source which must change, or you can make a dummy
item which you touch when you change the define, then make objects
depend on it.

  None of this is automatic, but it is portable.

	# these change when OS is redefined
	OSLIST	= part2.o random.o report3.o

	# touch osdef.inc when the OS define is changed
	$(OSLIST):: osdef.inc

  I think a portable program to go through files and generate some list
of defines used would be more useful to you and others.
-- 
	bill davidsen - sysop *IX BBS and Public Access UNIX
davidsen@sixhub.uucp		...!uunet!crdgw1!sixhub!davidsen

"Getting old is bad, but it beats the hell out of the alternative" -anon
Technical Details
Message-ID: <354@sixhub.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!uunet!crdgw1!sixhub!davidsen
References: <1440@jimi.cs.unlv.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!uunet!crdgw1!sixhub!davidsen
From: davidsen@sixhub.UUCP (Wm E. Davidsen Jr)
Newsgroups: comp.sources.d,alt.sources.d
Subject: Re: Looking for a make version to better support software versions
Message-ID: <354@sixhub.UUCP>
Date: 29 Dec 89 16:24:51 GMT
References: <1440@jimi.cs.unlv.edu>
Reply-To: davidsen@sixhub.UUCP (bill davidsen)
Followup-To: comp.sources.d
Organization: *IX Public Access UNIX, Schenectady NY
Lines: 22