Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac,att!ucbvax!UCBVAX.BERKELEY.EDU!"Dan Karron From: Dan Karron@UCBVAX.BERKELEY.EDU Newsgroups: comp.sys.sgi Subject: Makefile madness Message-ID: <9103161639.AA00820@karron.med.nyu.edu> Date: 16 Mar 91 16:39:39 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: karron@cmcl2.nyu.edu Organization: The Internet Lines: 24 I want to make a standard make/smake/pmake rule for the depend: pseudotarget. Then I want to include the list of target rules generated by makedepend, but if the file generated by makedepend is not found, make aborts. Now how can I get around this circular problem: If Makedepend is not found as an include file, just run mkdepend instead of aborting! Also, how can I make all of the .c or .h files a dependency for depend : ? Cheers! dan. +-----------------------------------------------------------------------------+ | karron@nyu.edu (E-mail alias that will always find me) | | Fax: 212 263 7190 * Dan Karron, Research Associate | | . . . . . . . . . . . . . . * New York University Medical Center | | 560 First Avenue \*\ Pager <1> (212) 397 9330 | | New York, New York 10016 \**\ <2> 10896 <3> | | (212) 263 5210 \***\_________________________________________ | | Main machine: karron.med.nyu.edu (128.122.135.3) IRIS 85GT | +-----------------------------------------------------------------------------+