summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-04 05:48:57 +0000
committerbde <bde@FreeBSD.org>1998-06-04 05:48:57 +0000
commit8c0f65d342a6cf42bfdc6b9e4de3c3589983a41a (patch)
treec9b5947b7492446f4e62d63242ace3da3cf436fd /usr.bin/make
parent350f093ed268af862b5a52a8e1ddc5d43b4c2e46 (diff)
downloadFreeBSD-src-8c0f65d342a6cf42bfdc6b9e4de3c3589983a41a.zip
FreeBSD-src-8c0f65d342a6cf42bfdc6b9e4de3c3589983a41a.tar.gz
Don't forget to pretend that `make -n -jN' makes the targets that it
says it pretends to make. This bug was apparently harmless except for normal cases involving .ORDER statements when it made debugging of -jN using -n very confusing. E.g., for: .ORDER: beforedepend .depend depend: beforedepend .depend where beforedepend depends on something so that it is not initially up to date, `make [-n] -j2 depend' causes `make' to wait for itself to make beforedepend. This works fine without -n. The job to make beforedepend has normally been started, and beforedepend is marked as made when the job completes. However, with -n, the pseudo-job for making beforedepend has normally completed, and in any case there was no chance of beforedepend being marked as made. `make' actually exited almost immediately with status 0 instead of waiting forever.
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index dae22ca..0b06d74 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: job.c,v 1.7 1997/02/22 19:27:11 peter Exp $
+ * $Id: job.c,v 1.8 1998/04/28 05:08:10 imp Exp $
*/
#ifndef lint
@@ -1851,6 +1851,7 @@ JobStart(gn, flags, previous)
JobSaveCommand,
(ClientData)job->node);
}
+ job->node->made = MADE;
Make_Update(job->node);
}
free((Address)job);
OpenPOWER on IntegriCloud