summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pkg_add/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/Makefile b/usr.sbin/pkg_add/Makefile
index eab24498e4f..2eb9948114b 100644
--- a/usr.sbin/pkg_add/Makefile
+++ b/usr.sbin/pkg_add/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.30 2005/09/04 22:47:56 espie Exp $
+# $OpenBSD: Makefile,v 1.31 2005/09/17 09:30:34 espie Exp $
.include <bsd.own.mk>
@@ -35,6 +35,7 @@ PACKAGES= \
OpenBSD/Vstat.pm \
OpenBSD/md5.pm \
+PACKAGEDIRS=OpenBSD
SCRIPTS= \
pkg_add \
@@ -99,9 +100,11 @@ stamp-mansrc.build:
@touch $@
install:
-.for i in ${PACKAGES}
+.for i in ${PACKAGEDIRS}
${INSTALL} -d -o ${LIBOWN} -g ${LIBGRP} -m ${DIRMODE} \
- ${DESTDIR}${LIBBASE}/${i:H}
+ ${DESTDIR}${LIBBASE}/$i
+.endfor
+.for i in ${PACKAGES}
${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${.CURDIR}/$i ${DESTDIR}${LIBBASE}/$i
.endfor