delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/07/17:33:55

From: "Chris A. Triebel" <cat AT sun4 DOT iol DOT unh DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Recursive make
Date: Tue, 7 Jan 1997 12:09:41 -0500
Organization: University of New Hampshire - Durham, NH
Lines: 19
Message-ID: <Pine.SUN.3.91.970107120342.23979D-100000@sun4.iol.unh.edu>
References: <9701071052 DOT AA21728 AT ic86i10 DOT settimo DOT italtel DOT it>
NNTP-Posting-Host: sun4.iol.unh.edu
Mime-Version: 1.0
In-Reply-To: <9701071052.AA21728@ic86i10.settimo.italtel.it>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> target : dir1
> 	cd dir1 ; make all

Try ...


target : dir1
	make -C dir1 all

This should cause make to execute as though it were started in dir1.

Am I mistaken that the dir1 on the target line will cause the system to 
make only if the directory is newer than the target.  And if so, will ... 

target : dir1/*

... cause target to be remade if any file in dir1 is newer than make.


- Raw text -


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