delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/29/02:53:49

From: Nate Eldredge <neldredge AT hmc DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: writing your own makefiles
Date: 28 Feb 2000 23:29:58 -0800
Organization: InterWorld Communications
Lines: 30
Message-ID: <83u2is4gax.fsf@mercury.st.hmc.edu>
References: <20000226 DOT 001348 DOT -398121 DOT 2 DOT roberts DOT j DOT whitlock AT juno DOT com> <38B927C8 DOT EE0D58ED AT bigfoot DOT com> <38BB597F DOT 22B13248 AT caresystems DOT com DOT au>
NNTP-Posting-Host: mercury.st.hmc.edu
Mime-Version: 1.0
X-Trace: nntp1.interworld.net 951809530 23872 134.173.45.219 (29 Feb 2000 07:32:10 GMT)
X-Complaints-To: usenet AT nntp1 DOT interworld DOT net
NNTP-Posting-Date: 29 Feb 2000 07:32:10 GMT
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

leon <Leon AT caresystems DOT com DOT au> writes:

> 	Hello everyone
> 
> 	at present i am writing my own make files and i happne to like it a lot
> ;-)
> 
> 	just have a simple question: currently when i add an included header
> file to my source code file, i hand write corresponding dependancyy in
> the makefile
> eg
> 
> test.cpp
> usually dependant on test.h
> but then in test.cpp text i include "test2.h"
> so then i go and manually write one more depend. for test.cpp namely the
> test2.h
> 
> 	The question is - is there anyway for make to automate such a process -
> or is it considered to be in the domain of the IDE responsibilities?
> 
> 	With best regards - Leon.

Yes, it can be automated.  Read the node "Generating Prerequisites
Automatically" in the Make manual.

-- 

Nate Eldredge
neldredge AT hmc DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019