oops; should define check_DESTDIR before setting default for DESTDIR...
This commit is contained in:
parent
4b99ad4ad4
commit
1142a4b638
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.own.mk,v 1.271 2002/03/05 03:51:23 lukem Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.272 2002/03/05 03:53:58 lukem Exp $
|
||||
|
||||
.if !defined(_BSD_OWN_MK_)
|
||||
_BSD_OWN_MK_=1
|
||||
@ -150,6 +150,30 @@ UUDECODE= ${TOOLDIR}/bin/nbuudecode
|
||||
YACC= ${TOOLDIR}/bin/nbyacc
|
||||
ZIC= ${TOOLDIR}/bin/nbzic
|
||||
|
||||
|
||||
# Targets to check if DESTDIR or RELEASEDIR is provided
|
||||
#
|
||||
.if !target(check_DESTDIR)
|
||||
check_DESTDIR: .PHONY .NOTMAIN
|
||||
.if !defined(DESTDIR)
|
||||
@echo "setenv DESTDIR before doing that!"
|
||||
@false
|
||||
.else
|
||||
@true
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !target(check_RELEASEDIR)
|
||||
check_RELEASEDIR: .PHONY .NOTMAIN
|
||||
.if !defined(RELEASEDIR)
|
||||
@echo "setenv RELEASEDIR before doing that!"
|
||||
@false
|
||||
.else
|
||||
@true
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
||||
# Make sure DESTDIR is set, so that builds with these tools always
|
||||
# get appropriate -nostdinc, -nostdlib, etc. handling. The default is
|
||||
# <empty string>, meaning start from /, the root directory.
|
||||
@ -397,27 +421,4 @@ MKGDB:= no
|
||||
MKGCC:= no
|
||||
.endif
|
||||
|
||||
|
||||
# Helper targets
|
||||
#
|
||||
.if !target(check_DESTDIR)
|
||||
check_DESTDIR: .PHONY .NOTMAIN
|
||||
.if !defined(DESTDIR)
|
||||
@echo "setenv DESTDIR before doing that!"
|
||||
@false
|
||||
.else
|
||||
@true
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if !target(check_RELEASEDIR)
|
||||
check_RELEASEDIR: .PHONY .NOTMAIN
|
||||
.if !defined(RELEASEDIR)
|
||||
@echo "setenv RELEASEDIR before doing that!"
|
||||
@false
|
||||
.else
|
||||
@true
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.endif # _BSD_OWN_MK_
|
||||
|
Loading…
Reference in New Issue
Block a user