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:
cinap_lenrek 2014-03-24 19:00:34 +01:00
parent 0df733f94b
commit d4abe404b4

View file

@ -85,11 +85,12 @@ install:V: $p$CONF
# 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
&.h: ../pc/&.h
REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
^($REPCH)\.h:R: '../pc/\1.h'
cp $prereq .
PCFILES=`{../port/mkfilelist ../pc}
^($PCFILES)\.$O:R: '../pc/\1.c'
REPCC=`{../port/mkfilelist ../pc}
^($REPCC)\.$O:R: '../pc/\1.c'
$CC $CFLAGS -I. -. ../pc/$stem1.c
<../boot/bootmkfile