blob: a3ed20f125a962fa8c09c093a2b48e10c8158d04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-ac,v 1.1.1.1 2002/05/31 13:00:04 seb Exp $
--- Makefile.orig Tue Jul 7 00:31:14 1998
+++ Makefile Mon Dec 20 23:45:52 1999
@@ -15,5 +15,8 @@
rm -f genMakefile
genMakefile: protoMakefile config.h
- awk -f extrpar `grep 'configs/.*\.h' config.h | sed 's/.*\(configs\/.*\.h\).*/\1/'` > genMakefile
+ rm -f genMakefile
+ cp config.h junk.c
+ awk -f extrpar `cc -E junk.c | sed -n 's/^#[^"]*"\([^/][^"]*onfigs[^"]*\)".*/\1/p' | sort | uniq` > genMakefile
+ rm -f junk.c
awk -f extrpar config.h | cat - protoMakefile >> genMakefile
|