diff options
author | asami <asami@FreeBSD.org> | 2000-04-07 23:19:11 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-04-07 23:19:11 +0000 |
commit | 1077be05775862c38c53ba64d761e94b6ad65079 (patch) | |
tree | 4ba70c3701eabf030d03f4c29e42d835a70f86dd /sysutils | |
parent | 10f12d7dd61d30ba57c3b95cfe32417fec71fdb9 (diff) | |
download | FreeBSD-ports-1077be05775862c38c53ba64d761e94b6ad65079.zip FreeBSD-ports-1077be05775862c38c53ba64d761e94b6ad65079.tar.gz |
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.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/procmap/Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sysutils/procmap/Makefile b/sysutils/procmap/Makefile index 772da5f..9e578db 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> |