summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-04-07 23:19:11 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-04-07 23:19:11 +0000
commitf3aec7e67f5da0511faf732d23044696597f8d84 (patch)
treeeca2621f0d4f3761eeae7141621b529fd6058bfd /sysutils
parentUpdate port to 1.0 (diff)
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.
Notes
Notes: svn path=/head/; revision=27404
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/procmap/Makefile12
1 files changed, 4 insertions, 8 deletions
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 <bsd.port.mk>