diff options
author | John Birrell <jb@FreeBSD.org> | 1998-09-01 00:39:02 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 1998-09-01 00:39:02 +0000 |
commit | ff1284f6c0fd75e3d7419021193e9d848857f253 (patch) | |
tree | b9805f497ed8c4776a9cc456bcdac5bc26082ee9 | |
parent | c155091cc8fc472f3a72c06566e5a9c810457a8d (diff) | |
download | src-ff1284f6c0fd75e3d7419021193e9d848857f253.tar.gz src-ff1284f6c0fd75e3d7419021193e9d848857f253.zip |
Notes
-rw-r--r-- | Makefile.inc1 | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 86ab5c0aea9c..cd1763a78a91 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1,5 +1,5 @@ # -# $Id: Makefile.inc1,v 1.1 1998/08/31 01:08:08 jb Exp $ +# $Id: Makefile.inc1,v 1.2 1998/08/31 20:43:13 jb Exp $ # # Make command line options: # -DCLOBBER will remove /usr/include @@ -222,7 +222,7 @@ IXMAKE= ${XMAKEENV} ${WORLDTMP}/usr/bin/make # Attempt to rebuild the entire system, with reasonable chance of # success, regardless of how old your existing system is. # -buildworld: +buildworld: check-objformat .if !defined(NOCLEAN) @echo @echo "--------------------------------------------------------------" @@ -941,6 +941,29 @@ legacy-install: .endif +# Get the object format that the tools see. +# +# +.if exists(/usr/bin/objformat) +__OBJFORMAT!= objformat +.else +__OBJFORMAT= ${OBJFORMAT} +.endif + +# +# Check if the local /etc/make.conf or /etc/make.conf.local have attempted +# to override the OBJFORMAT without updating the environment for the tools +# to see. +# +check-objformat : +.if ${__OBJFORMAT} != ${OBJFORMAT} + @/bin/sh -c "echo \"It looks like you set OBJFORMAT=${OBJFORMAT} in /etc/make.conf. Don't do that!\" " + @/bin/sh -c "echo \"If you want to override the installed object format, you must set OBJFORMAT\" " + @/bin/sh -c "echo \"in your environment.\" " + @exit 1 +.endif + + .for __target in clean cleandepend cleandir depend obj .for entry in ${SUBDIR} ${entry}.${__target}__D: .PHONY |