🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1324

Re: Makefile.dependencies without system header files ??

#1324
From: Art Isbell
Date: Fri, 06 Nov 1992 07:38
37 lines
2111 bytes
In article <1cctv0INNimk@agate.berkeley.edu> izumi@mindseye.berkeley.edu  
(Izumi Ohzawa) writes:
 >When you do "Make depend" in a project directory, Release 3.0
 >make produces a huge Makefile.dependencies file.
 >The file includes all the  system include files inaddition to
 >those specific to the project.

 >How do I get rid of references to /NextDevloper/Headers/*
 >from the file?

I add the following to my Makefile.postamble to get rid of the chaff.  Of
course, it could be customized to ignore any other non-changing header files
that you might have in /LocalDeveloper/Headers or /usr/local/include, for
instance:

SED = /bin/sed
TR = /usr/bin/tr
MV = /bin/mv

# Remove all the system headers from Makefile.dependencies.
Makefile.dependencies::
	@($(SED) -e 's:/NextDeveloper/Headers[^ ]* ::g' -e 's:  \\$$::' \
		Makefile.dependencies | $(TR) -s '\012' '\012' > \
		Makefile.dependencies.tmp; \
	$(MV) -f Makefile.dependencies.tmp Makefile.dependencies)

These are just additional Makefile.dependencies rules, so they get executed
after the standard NeXT stuff when you do "make depend" or use the "depend"
argument in ProjectBuilder.  A smaller Makefile.dependencies should speed up
recompiles, especially for large projects.
-- 

Art Isbell                                                      Cubic Solutions
NeXT Registered Developer #745         NeXT software development and consulting
Email: isbell@cats.UCSC.EDU                                Voice: (408)335-1154
USmail: 95018-9442                                           Fax: (408)335-2515
Technical Details
Message-ID: <1dd7coINN8fg@darkstar.UCSC.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!isbell
References: <1cctv0INNimk@agate.berkeley.edu> <1992Nov3.222449.1411@glocke.hotb.sub.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!darkstar.UCSC.EDU!cats.ucsc.edu!isbell
From: isbell@cats.ucsc.edu (Art Isbell)
Newsgroups: comp.sys.next.programmer
Subject: Re: Makefile.dependencies without system header files ??
Date: 6 Nov 1992 07:38:00 GMT
Organization: Cubic Solutions - NeXT software development and consulting
Lines: 37
Message-ID: <1dd7coINN8fg@darkstar.UCSC.EDU>
References: <1cctv0INNimk@agate.berkeley.edu> <1992Nov3.222449.1411@glocke.hotb.sub.org>
NNTP-Posting-Host: si.ucsc.edu