mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Added trailing slash to ${CANONICALOBJDIR} in tests for directories,
so that /usr/obj can be a symlink to an existing directory.
This commit is contained in:
parent
c0bb409c43
commit
409ac84cb2
1 changed files with 7 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $Id$
|
||||
# $Id: bsd.obj.mk,v 1.19 1997/02/22 13:56:12 peter Exp $
|
||||
#
|
||||
# The include file <bsd.obj.mk> handles creating the 'obj' directory
|
||||
# and cleaning up object files, log files etc.
|
||||
|
|
@ -66,9 +66,9 @@ obj:
|
|||
.else
|
||||
.if !defined(OBJLINK)
|
||||
obj: _SUBDIR
|
||||
@if ! test -d ${CANONICALOBJDIR}; then \
|
||||
@if ! test -d ${CANONICALOBJDIR}/; then \
|
||||
mkdir -p ${CANONICALOBJDIR}; \
|
||||
if ! test -d ${CANONICALOBJDIR}; then \
|
||||
if ! test -d ${CANONICALOBJDIR}/; then \
|
||||
${ECHO} "Unable to create ${CANONICALOBJDIR}."; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
|
|
@ -76,9 +76,9 @@ obj: _SUBDIR
|
|||
fi
|
||||
.else
|
||||
obj: _SUBDIR
|
||||
@if ! test -d ${CANONICALOBJDIR}; then \
|
||||
@if ! test -d ${CANONICALOBJDIR}/; then \
|
||||
mkdir -p ${CANONICALOBJDIR}; \
|
||||
if ! test -d ${CANONICALOBJDIR}; then \
|
||||
if ! test -d ${CANONICALOBJDIR}/; then \
|
||||
${ECHO} "Unable to create ${CANONICALOBJDIR}."; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
|
|
@ -92,7 +92,7 @@ obj: _SUBDIR
|
|||
|
||||
.if !target(objlink)
|
||||
objlink: _SUBDIR
|
||||
@if test -d ${CANONICALOBJDIR}; then \
|
||||
@if test -d ${CANONICALOBJDIR}/; then \
|
||||
rm -f ${.CURDIR}/obj; \
|
||||
ln -s ${CANONICALOBJDIR} ${.CURDIR}/obj; \
|
||||
else \
|
||||
|
|
@ -112,7 +112,7 @@ whereobj:
|
|||
# cleanup
|
||||
#
|
||||
cleanobj:
|
||||
@if [ -d ${CANONICALOBJDIR} ]; then \
|
||||
@if [ -d ${CANONICALOBJDIR}/ ]; then \
|
||||
rm -rf ${CANONICALOBJDIR}; \
|
||||
else \
|
||||
cd ${.CURDIR} && ${MAKE} clean cleandepend; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue