From 8c7c713f1446135cfe96a4e1d8b2b6485a4d133d Mon Sep 17 00:00:00 2001 From: Adam David Date: Mon, 24 Apr 1995 16:52:12 +0000 Subject: added convulutions for package creation with ${PREFIX} != /usr/local --- net/dgd/Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'net/dgd') diff --git a/net/dgd/Makefile b/net/dgd/Makefile index 4ddc1b7d0c02..f7f2c2d0a900 100644 --- a/net/dgd/Makefile +++ b/net/dgd/Makefile @@ -67,6 +67,19 @@ ${_PATCH_COOKIE}: ${PATCHLIST} do-install: @chown -R mud.mud ${WRKDIR}/dgd @tar -C ${WRKDIR} -cf - `grep '^dgd/' pkg/PLIST` \ - | tar -C /usr/local -xpf - + | tar -C ${PREFIX} -xpf - + +.if !defined(NO_INSTALL) +package: + @${MAKE} ${.MAKEFLAGS} NO_INSTALL= package +.endif + +.if !defined(DO_PACKAGE) +do-package: + @echo ".include \"${.CURDIR}/Makefile\"" >${WRKDIR}/Makefile + @cd ${WRKDIR}; \ +${MAKE} ${.MAKEFLAGS} WRKDIR=${WRKDIR} PKGDIR=${PKGDIR} DO_PACKAGE= do-package + @rm -f ${WRKDIR}/Makefile +.endif .include -- cgit v1.2.3