summaryrefslogtreecommitdiff
path: root/time/asclock
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2005-06-17 03:50:19 +0000
committerjlam <jlam@pkgsrc.org>2005-06-17 03:50:19 +0000
commite46a9dd38060ef6414b4db2f15402a701e32c7b7 (patch)
tree067490bfc0f733c9b522363134ffa36e43b49192 /time/asclock
parent412af280c005dfc946b85f88a9e754232c586fc7 (diff)
downloadpkgsrc-e46a9dd38060ef6414b4db2f15402a701e32c7b7.tar.gz
Create directories before installing files into them.
Diffstat (limited to 'time/asclock')
-rw-r--r--time/asclock/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/time/asclock/Makefile b/time/asclock/Makefile
index 4e2259a7f9d..9c766fe1150 100644
--- a/time/asclock/Makefile
+++ b/time/asclock/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2005/04/11 21:47:44 tv Exp $
+# $NetBSD: Makefile,v 1.20 2005/06/17 03:50:38 jlam Exp $
DISTNAME= asclock-classic-1.0
PKGNAME= asclock-1.0
@@ -19,6 +19,8 @@ PLIST_SRC= ${WRKDIR}/.PLIST_SRC
.include "../../mk/bsd.prefs.mk"
+INSTALLATION_DIRS= bin libexec
+
# Translate to two-letter abbreviations in /usr/share/misc/language.
#
post-extract:
@@ -53,10 +55,12 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/asclock ${PREFIX}/libexec/asclock-classic
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
.if (${OPSYS} == SunOS) || (${OPSYS} == "Linux") || (${OPSYS} == "Interix")
- ${INSTALL_DATA} ${WRKSRC}/asclock.man ${PREFIX}/man/man1/asclock.1
+ ${INSTALL_MAN_DIR} ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/asclock.man ${PREFIX}/man/man1/asclock.1
@${ECHO} man/man1/asclock.1 >> ${PLIST_SRC}
.else
- ${INSTALL_DATA} ${WRKSRC}/asclock.0 ${PREFIX}/man/cat1/asclock.0
+ ${INSTALL_MAN_DIR} ${PREFIX}/man/cat1
+ ${INSTALL_MAN} ${WRKSRC}/asclock.0 ${PREFIX}/man/cat1/asclock.0
@${ECHO} man/cat1/asclock.0 >> ${PLIST_SRC}
.endif
${INSTALL_DATA_DIR} ${PREFIX}/share/asclock-classic