blob: ebf3974bf371253e508f8d6ecbdb0ace8283e47c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# $Id$
# Expand 'includes' in makefiles. Usage:
# catmake orig.mak > makefile
awk '
/^include / {
print "# INCLUDE OF", $2
while (getline x <$2 > 0)
if(x !~ /^#/)
print x
next
}
{print}
' $1
|