summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/cpp0/Makefile
diff options
context:
space:
mode:
authorjmc <jmc@NetBSD.org>2001-11-26 18:19:47 +0000
committerjmc <jmc@NetBSD.org>2001-11-26 18:19:47 +0000
commit0aba719980be19a7fa6b8ad2b2ee00822768bedd (patch)
treee36694db87e33df0685394af832a5748733383d8 /gnu/usr.bin/gcc/cpp0/Makefile
parent7eac246b749f488b191120f5c19c581f6d4db385 (diff)
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.
Diffstat (limited to 'gnu/usr.bin/gcc/cpp0/Makefile')
-rw-r--r--gnu/usr.bin/gcc/cpp0/Makefile6
1 files changed, 5 insertions, 1 deletions
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 <bsd.own.mk>
@@ -14,4 +14,8 @@ BINDIR= /usr/libexec
.include <bsd.prog.mk>
+# Don't auto-frob .y or .l files.
+.l.c .y.c .y.h:
+ @true
+
.PATH: ${DIST}/gcc