1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

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

(cherry picked from commit 8a802df1de)
This commit is contained in:
Mark Johnston 2024-03-07 00:39:07 -05:00
parent 683947e13f
commit b41151b96d

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>