summaryrefslogtreecommitdiff
path: root/regress/print-plist
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-06-07 03:46:05 +0000
committerjoerg <joerg@pkgsrc.org>2015-06-07 03:46:05 +0000
commit16e79ca97920947bc4b36673ca926ae1ead7941e (patch)
treecd04f04a7f3d5684c83c19905ddbf1e4be2d0afd /regress/print-plist
parentadd25cea536de3cf908bcbf1e0843d65cd611427 (diff)
downloadpkgsrc-16e79ca97920947bc4b36673ca926ae1ead7941e.tar.gz
Support DESTDIR, drop @dirrm. Give a working WRKSRC.
Diffstat (limited to 'regress/print-plist')
-rw-r--r--regress/print-plist/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/regress/print-plist/Makefile b/regress/print-plist/Makefile
index dbd0d84e41f..c714ebab7d3 100644
--- a/regress/print-plist/Makefile
+++ b/regress/print-plist/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2009/04/09 00:47:12 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2015/06/07 03:46:05 joerg Exp $
#
DISTNAME= print-plist-0.0
@@ -11,18 +11,17 @@ COMMENT= Test print-PLIST and related functionality
NO_CONFIGURE= yes
+WRKSRC= ${WRKDIR}
+
PRINT_PLIST_AWK+= /^print-plist\/foo$$/ \
{ print "@comment Matched test file."; \
print; next }
-PRINT_PLIST_AWK+= /^@dirrm print-plist$$/ \
- { print "@comment Matched test directory."; \
- print; next }
do-build:
${ECHO} "foo" >${WRKDIR}/foo
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/print-plist
- ${INSTALL_DATA} ${WRKDIR}/foo ${PREFIX}/print-plist
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/print-plist
+ ${INSTALL_DATA} ${WRKDIR}/foo ${DESTDIR}${PREFIX}/print-plist
.include "../../mk/bsd.pkg.mk"