From f3aec7e67f5da0511faf732d23044696597f8d84 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Fri, 7 Apr 2000 23:19:11 +0000 Subject: Fix build problem (read-only ${PORTSDIR}) by adding MAKE_ENV=MAKEOBJDIRPREFIX=${WRKDIR} and a pre-build target to do a "make obj". That obsoletes the pre-clean target since the generated files all go into ${WRKDIR} and there's nothing to clean on the source directory. Also, fix several minor bogons. NO_CHECKSUM is a user variable, and never should be set in a port Makefile. NO_WRKSUBDIR is not necessary because WRKSRC is set explicitly. I don't know what the empty do-fetch is doing there. --- sysutils/procmap/Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'sysutils/procmap') diff --git a/sysutils/procmap/Makefile b/sysutils/procmap/Makefile index 772da5fd808b..9e578dbee025 100644 --- a/sysutils/procmap/Makefile +++ b/sysutils/procmap/Makefile @@ -12,15 +12,11 @@ DISTFILES= #empty MAINTAINER= jasone@freebsd.org -NO_CHECKSUM= yes -NO_WRKSUBDIR= yes - +# setting MAKEOBJDIR doesn't work for some reason +MAKE_ENV= MAKEOBJDIRPREFIX=${WRKDIR} WRKSRC= ${.CURDIR}/src -do-fetch: - @${DO_NADA} - -pre-clean: - @$(SH) -ec "cd $(WRKSRC) ; make clean" +pre-build: + @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} obj .include -- cgit v1.2.3