From 0aba719980be19a7fa6b8ad2b2ee00822768bedd Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 26 Nov 2001 18:19:47 +0000 Subject: A few things to make r/o source trees work that might have timestamps on the dist .y and .c files reversed. 1. Move the .y.c and other assorted implicit rule overrides out of Makefile.inc and into local Makefile's. The system Makefile (bsd.sys.mk) sets up .l.c and .y.c rules so unless these come after all inclusions they just get ignored. 2. Add @true as the command for any of the rule overrides. Otherwise make still bails complaining about not knowing how to build the requisite .c or .h file. This obviously wasn't tested before as it couldn't have worked as-is. --- gnu/usr.bin/gcc/cpp0/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin/gcc/cpp0') diff --git a/gnu/usr.bin/gcc/cpp0/Makefile b/gnu/usr.bin/gcc/cpp0/Makefile index 3503319cc59..6a316b95c05 100644 --- a/gnu/usr.bin/gcc/cpp0/Makefile +++ b/gnu/usr.bin/gcc/cpp0/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2001/07/18 14:01:14 tv Exp $ +# $NetBSD: Makefile,v 1.2 2001/11/26 18:19:49 jmc Exp $ .include @@ -14,4 +14,8 @@ BINDIR= /usr/libexec .include +# Don't auto-frob .y or .l files. +.l.c .y.c .y.h: + @true + .PATH: ${DIST}/gcc -- cgit