pc64: prevent dat.h from getting overwritten by ../pc/dat.h
the rule that was used to copy header files from ../pc accidently overwrote dat.h when ../pc/dat.h was updated because it matched on all *.h files that was also found in ../pc directory. change to exact match on $PCHEADERS to prevent this.
This commit is contained in:
parent
0df733f94b
commit
d4abe404b4
1 changed files with 4 additions and 3 deletions
|
@ -85,11 +85,12 @@ install:V: $p$CONF
|
||||||
# copies generated by the rule below
|
# copies generated by the rule below
|
||||||
PCHEADERS=wifi.h uncached.h usbehci.h screen.h etherif.h ethermii.h mp.h io.h ahci.h
|
PCHEADERS=wifi.h uncached.h usbehci.h screen.h etherif.h ethermii.h mp.h io.h ahci.h
|
||||||
|
|
||||||
&.h: ../pc/&.h
|
REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
|
||||||
|
^($REPCH)\.h:R: '../pc/\1.h'
|
||||||
cp $prereq .
|
cp $prereq .
|
||||||
|
|
||||||
PCFILES=`{../port/mkfilelist ../pc}
|
REPCC=`{../port/mkfilelist ../pc}
|
||||||
^($PCFILES)\.$O:R: '../pc/\1.c'
|
^($REPCC)\.$O:R: '../pc/\1.c'
|
||||||
$CC $CFLAGS -I. -. ../pc/$stem1.c
|
$CC $CFLAGS -I. -. ../pc/$stem1.c
|
||||||
|
|
||||||
<../boot/bootmkfile
|
<../boot/bootmkfile
|
||||||
|
|
Loading…
Reference in a new issue