summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2008-09-02 04:19:47 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2008-09-02 04:19:47 +0000
commit216b2cd0926d338fcea638bfa764853646aa351d (patch)
tree649cc62fd00bca5f4d10938854abed18c1b15c38 /usr.sbin
parenta6a1a222be3ee9756a05099fc2cffb03dfa47f03 (diff)
Install in the correct directory with NOMAN set. Based on makewhatis
with additional CLEANFILES from theo.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.sbin/pkg_add/Makefile b/usr.sbin/pkg_add/Makefile
index c5fec720b23..c46093e501c 100644
--- a/usr.sbin/pkg_add/Makefile
+++ b/usr.sbin/pkg_add/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.49 2008/04/07 11:02:24 espie Exp $
+# $OpenBSD: Makefile,v 1.50 2008/09/02 04:19:46 drahn Exp $
.include <bsd.own.mk>
@@ -6,6 +6,7 @@ MAN1=pkg_add.1 pkg_info.1 pkg_create.1 pkg_delete.1 pkg_merge.1 \
pkg.1 pkg_mklocatedb.1
MAN5=package.5
MAN=${MAN1} ${MAN5}
+NOPROG=
POD2MAN=/usr/bin/pod2man
@@ -109,15 +110,15 @@ mansrc.build:
cd ${.CURDIR}/pod && ${POD2MAN} --section=3p --official ${_quick3p}
.endif
-# Nothing to build
-depend:
all: ${MANSRC_COOKIE} .WAIT ${MANALL} ${PSALL}
stamp-mansrc.build:
@cd ${.CURDIR} && exec ${MAKE} mansrc.build
@touch $@
-install:
+CLEANFILES= ${PACKAGES} ${MANSRCALL} ${MANALL} stamp-mansrc.build
+
+realinstall:
.for i in ${PACKAGEDIRS}
${INSTALL} -d -o ${LIBOWN} -g ${LIBGRP} -m ${DIRMODE} \
${DESTDIR}${LIBBASE}/$i
@@ -131,13 +132,6 @@ install:
${.CURDIR}/$i ${DESTDIR}${BINDIR}/$i
.endfor
-clean:
-
-.if !defined(NOMAN)
-install: maninstall
-.include <bsd.man.mk>
-.endif
-.include <bsd.obj.mk>
-.include <bsd.subdir.mk>
+.include <bsd.prog.mk>
.PHONY: mansrc.build