blob: 972824e7bd83b0e5040e274b3637d7ce31914006 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# 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
|