Xref: utzoo comp.sources.d:4491 alt.sources.d:409 Path: 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 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