From 7eef69751d34d9261ead8f92ba86c2da08c6467e Mon Sep 17 00:00:00 2001 From: drahn Date: Tue, 2 Sep 2008 04:19:46 +0000 Subject: [PATCH] Install in the correct directory with NOMAN set. Based on makewhatis with additional CLEANFILES from theo. --- usr.sbin/pkg_add/Makefile | 18 ++++++------------ 1 file 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 @@ -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 -.endif -.include -.include +.include .PHONY: mansrc.build -- 2.20.1