run file from ${.OBJDIR} instead of ${.CURDIR} to make it work with

objdir builds also
This commit is contained in:
pooka 2001-03-27 08:45:02 +00:00
parent 2f7b0c6c27
commit b7aff9e185
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2001/03/27 00:53:43 pooka Exp $
# $NetBSD: Makefile,v 1.29 2001/03/27 08:45:02 pooka Exp $
.include <bsd.own.mk>
@ -30,7 +30,7 @@ MAGFILES= $(.CURDIR)/Header \
.if ${MKSHARE} != "no"
magic: $(MAGFILES)
cat $(MAGFILES) > $(.TARGET)
$(.CURDIR)/$(PROG) -C -m $(.TARGET)
$(.OBJDIR)/$(PROG) -C -m $(.TARGET)
.else
magic:
.endif