bhyve/gdb: Avoid rebuilding target.xml for install targets

Otherwise it's impossible to install from a read-only objdir.

Fixes:	f81cdf24ba ("bhyve: Add support for XML register definitions")
Reported by:	olivier
This commit is contained in:
Mark Johnston 2024-03-07 00:39:07 -05:00
parent 7c6af20969
commit 8a802df1de

View file

@ -8,6 +8,7 @@ XMLARCH= i386:x86-64
FILES+= amd64.xml
.endif
.if !make(install*)
target.xml: .PHONY
@echo "<?xml version=\"1.0\"?>" > ${.TARGET}
@echo "<!DOCTYPE target SYSTEM \"gdb-target.dtd\">" >> ${.TARGET}
@ -17,5 +18,6 @@ target.xml: .PHONY
@echo " <xi:include href=\"${file}\"/>" >> ${.TARGET}
.endfor
@echo "</target>" >> ${.TARGET}
.endif
.include <bsd.prog.mk>