Skip to content

Commit

Permalink
bhyve/gdb: Avoid rebuilding target.xml for install targets
Browse files Browse the repository at this point in the history
Otherwise it's impossible to install from a read-only objdir.

Fixes:	f81cdf2 ("bhyve: Add support for XML register definitions")
Reported by:	olivier
  • Loading branch information
markjdb committed Mar 7, 2024
1 parent 7c6af20 commit 8a802df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr.sbin/bhyve/gdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -17,5 +18,6 @@ target.xml: .PHONY
@echo " <xi:include href=\"${file}\"/>" >> ${.TARGET}
.endfor
@echo "</target>" >> ${.TARGET}
.endif

.include <bsd.prog.mk>

0 comments on commit 8a802df

Please sign in to comment.