summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/Makefile
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2003-10-28 17:12:58 +0000
committerMarc Espie <espie@cvs.openbsd.org>2003-10-28 17:12:58 +0000
commit536115d4135924a5fce2d5bbff92689bb57828d7 (patch)
tree143404e1a5b13def4cabaa91a26ba1c66dfeb265 /usr.sbin/pkg_add/Makefile
parentb60ec40f73eb69dff7c535e1866b540488e9a7f6 (diff)
OpenBSD-specific Makefile. We keep Makefile.PL around for portability to
other OSes. A bit more maintenance, since each module will need to be added, but there are too many fun things that can happen with depend/clean/whatever. Should please that Theo guy who sometimes sends me spam. okay millert@
Diffstat (limited to 'usr.sbin/pkg_add/Makefile')
-rw-r--r--usr.sbin/pkg_add/Makefile53
1 files changed, 53 insertions, 0 deletions
diff --git a/usr.sbin/pkg_add/Makefile b/usr.sbin/pkg_add/Makefile
new file mode 100644
index 00000000000..178eb9708cf
--- /dev/null
+++ b/usr.sbin/pkg_add/Makefile
@@ -0,0 +1,53 @@
+# $OpenBSD: Makefile,v 1.1 2003/10/28 17:12:57 espie Exp $
+
+MAN=pkg_add.1 pkg_info.1 pkg_create.1 pkg_delete.1 pkg.1
+
+PACKAGES= \
+ OpenBSD/PackageInfo.pm \
+ OpenBSD/PackageLocator.pm \
+ OpenBSD/PackageName.pm \
+ OpenBSD/PackingElement.pm \
+ OpenBSD/PackingList.pm \
+ OpenBSD/PkgCfl.pm \
+ OpenBSD/RequiredBy.pm \
+ OpenBSD/Temp.pm \
+ OpenBSD/Ustar.pm \
+ OpenBSD/md5.pm
+
+SCRIPTS= \
+ pkg_add \
+ pkg_info \
+ pkg_create \
+ pkg_delete \
+ pkg
+
+LIBBASE=/usr/libdata/perl5
+
+# Nothing to build
+depend:
+all:
+
+
+install: maninstall
+.for i in ${PACKAGES}
+ ${INSTALL} -d -o ${LIBOWN} -g ${LIBGRP} -m ${DIRMODE} \
+ ${DESTDIR}${LIBBASE}/${i:H}
+ ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ ${.CURDIR}/$i ${DESTDIR}${LIBBASE}/$i
+.endfor
+.for i in ${SCRIPTS}
+ ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
+.endfor
+
+clean:
+
+.include <bsd.own.mk>
+
+.if !defined(NOMAN)
+.include <bsd.man.mk>
+.endif
+
+.include <bsd.subdir.mk>
+.include <bsd.obj.mk>
+