aboutsummaryrefslogtreecommitdiffstats
path: root/www/webcheck
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-01-03 16:41:34 +0800
committeredwin <edwin@FreeBSD.org>2003-01-03 16:41:34 +0800
commitcb6f1f759edce5406cda9eece7451a0da6218282 (patch)
treeb1ba011bd92de93bcb5813fbd97f86426f135341 /www/webcheck
parent42a4083c623c25e1ae525f4376c8e170dd8e0f7c (diff)
downloadfreebsd-ports-gnome-cb6f1f759edce5406cda9eece7451a0da6218282.tar.gz
freebsd-ports-gnome-cb6f1f759edce5406cda9eece7451a0da6218282.tar.zst
freebsd-ports-gnome-cb6f1f759edce5406cda9eece7451a0da6218282.zip
Redo Makefile to use INSTALL_DATA/INSTALL_SCRIPT
PR: ports/40088 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Diffstat (limited to 'www/webcheck')
-rw-r--r--www/webcheck/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/www/webcheck/Makefile b/www/webcheck/Makefile
index a5dc2ea8aec0..d97901ba7ff7 100644
--- a/www/webcheck/Makefile
+++ b/www/webcheck/Makefile
@@ -15,25 +15,27 @@ MAINTAINER= mwm@mired.org
USE_PYTHON= YES
USE_BZIP2= YES
+.if defined(NOPORTDOCS)
+NO_BUILD= YES
+.endif
+
+do-build:
+ ${AWK} '/^Running Webcheck/ { output=1 } output' \
+ < ${WRKSRC}/INSTALL > ${WRKSRC}/USAGE
do-install:
@${MKDIR} ${DATADIR}
- ${CP} ${WRKSRC}/*.py ${DATADIR}
- ${CP} ${WRKSRC}/*.css ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.py ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.css ${DATADIR}
.for d in plugins schemes
@${MKDIR} ${DATADIR}/${d}
- ${CP} ${WRKSRC}/${d}/*.py ${DATADIR}/${d}
+ ${INSTALL_DATA} ${WRKSRC}/${d}/*.py ${DATADIR}/${d}
.endfor
+ ${INSTALL_SCRIPT} ${WRKSRC}/webcheck.py ${DATADIR}
${LN} -sf ${DATADIR}/webcheck.py ${PREFIX}/bin/webcheck
-.ifndef NOPORTDOCS
+.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/USAGE ${DOCSDIR}
-
-do-build:
- ${AWK} '/^Running Webcheck/ { output=1 } output' \
- < ${WRKSRC}/INSTALL > ${WRKSRC}/USAGE
-.else
-NO_BUILD= yes
.endif
.include <bsd.port.mk>