summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2001-04-13 19:01:55 +0000
committerbeck <beck@openbsd.org>2001-04-13 19:01:55 +0000
commit57bbdcff8c15fa8236666340a5843e92459df1cf (patch)
tree2c8b4c0478d9d98aae69e3805b4d22b7971a2d56
parentmerge mod_ssl 2.8.2 (diff)
downloadwireguard-openbsd-57bbdcff8c15fa8236666340a5843e92459df1cf.tar.xz
wireguard-openbsd-57bbdcff8c15fa8236666340a5843e92459df1cf.zip
Fix clean target so it really cleans - depending on if we have a
seperate .OBJDIR or not, Now checks to see if .OBJDIR is seperate from CURDIR, and if so, blows away the lndir tree so that we don't get caught by stale stuff lying around.
-rw-r--r--usr.sbin/httpd/Makefile.bsd-wrapper20
1 files changed, 13 insertions, 7 deletions
diff --git a/usr.sbin/httpd/Makefile.bsd-wrapper b/usr.sbin/httpd/Makefile.bsd-wrapper
index 0aab4ce5188..9420cd77199 100644
--- a/usr.sbin/httpd/Makefile.bsd-wrapper
+++ b/usr.sbin/httpd/Makefile.bsd-wrapper
@@ -1,5 +1,5 @@
# Build wrapper for Apache
-# $OpenBSD: Makefile.bsd-wrapper,v 1.21 2001/03/29 10:21:22 beck Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.22 2001/04/13 19:01:55 beck Exp $
# Our lndir is hacked; specify a full path to avoid potential conflicts
# with the one installed with X11.
@@ -142,6 +142,7 @@ MUNGEDFILES = ${.OBJDIR}/src/ap/Makefile \
${.OBJDIR}/src/modules.c \
${.OBJDIR}/src/Configuration.apaci ${.OBJDIR}/Makefile \
${.OBJDIR}/config.status
+
BINFILES= src/support/htdigest src/support/htpasswd
SBINFILES= \
@@ -524,18 +525,19 @@ ICONFILES= \
all: prereq
@cd ${.OBJDIR} && ${MAKE}
-prereq: ${.OBJDIR}/config.status
+prereq: ${.OBJDIR}/config.status
-${.OBJDIR}/config.status : ${.OBJDIR}/config.layout
+${.OBJDIR}/config.status : ${.OBJDIR}/config.layout
@cd ${.OBJDIR} && CC="${CC}" LD_SHLIB="${CC}" OPTIM="${CFLAGS}" \
PATH="/sbin:/usr/sbin:/bin:/usr/bin" \
sh configure ${CONFIG_ARGS}
.if !exists(${.OBJDIR}/config.layout)
${.OBJDIR}/config.layout: ${.CURDIR}/config.layout
- @${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}
+ ${LNDIR} -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR}
.endif
+
includes: prereq
@-for i in ${INCFILES}; do \
j=`basename $$i`; \
@@ -598,12 +600,16 @@ install: maninstall
echo $$j; \
eval $$j; \
rm -rf $$d
-
+
+.if ${.OBJDIR} == ${.CURDIR}
clean: prereq
- @cd ${.OBJDIR} && ${MAKE} clean
+ @cd ${.OBJDIR} && ${MAKE} clean && rm -f ${MUNGEDFILES}
+.else
+clean:
+ @cd ${.OBJDIR} && find . \! -type d -print | xargs rm
+.endif
cleandir: clean
- @cd ${.OBJDIR} && rm -f ${MUNGEDFILES}
test:
# Nothing here so far...