home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
-
- 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
-