mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
META_MODE: Avoid command changing in 2nd build.
If the command to be ran changes then a rebuild is caused. Checking exists(${DESTDIR}...) from make results in this on the 2nd and possibly subsequent builds due to staging during build. Avoid this by always running the existence check in the make sh command. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d6054a61ef
commit
28bd003b30
@ -172,12 +172,12 @@ compat:
|
||||
copies:
|
||||
.for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto machine machine/pc \
|
||||
${_MARCHS}
|
||||
.if exists(${DESTDIR}${INCLUDEDIR}/$i)
|
||||
cd ${DESTDIR}${INCLUDEDIR}/$i; \
|
||||
for h in *.h; do \
|
||||
if [ -L $$h ]; then rm -f $$h; fi; \
|
||||
done
|
||||
.endif
|
||||
if [ -d ${DESTDIR}${INCLUDEDIR}/$i ]; then \
|
||||
cd ${DESTDIR}${INCLUDEDIR}/$i; \
|
||||
for h in *.h; do \
|
||||
if [ -L $$h ]; then rm -f $$h; fi; \
|
||||
done; \
|
||||
fi
|
||||
.endfor
|
||||
.for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/nand:Ndev/pci} ${LSUBSUBDIRS}
|
||||
cd ${.CURDIR}/../sys; \
|
||||
|
Loading…
Reference in New Issue
Block a user