Commit Graph

39 Commits

Author SHA1 Message Date
lukem 88b5ee46e9 Install zoneinfo files NONBINMODE (444) instead of BINMODE (555).
Noted by David Laight on tech-toolchain.
2004-08-31 00:00:31 +00:00
jmc 84fafa3db5 Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
2004-06-21 18:20:08 +00:00
lukem 3e223f04c9 Use find . -type f | while read ... ${INSTALL} ... instead of ${PAX}
to install the zoneinfo files.
2004-01-30 04:30:51 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem 252bf981a7 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 14:20:28 +00:00
lukem f134f3dc38 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.
2003-07-18 08:26:01 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
lukem 144b55005f Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
  ${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
  it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
  "mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
  on a P3-600.
  (This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
  on all the pathnames, and it's smaller as well.
2002-12-23 06:52:48 +00:00
lukem d9aa9519e8 Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question.  (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).
2002-12-21 15:54:48 +00:00
lukem 41e588395b Instead of ${ZIC}-ing to ${DESTDIR}/usr/share/zoneinfo and using chmod and
chown to frob permissions, use ${ZIC} to ${.OBJDIR}/builddir, create a
temporary mtree(8) specfile, and use "${PAX} -M -N ${NETBSDSRCDIR}/etc"
to copy to ${DESTDIR}/usr/share/zoneinfo, looking up root:wheel in
${NETBSDSRCDIR}/etc instead of the host system database.
2002-12-19 10:56:39 +00:00
mason c86d6704bc Use the new cat(1) locking functionality - should solve PR toolchain/16963.
If all goes well, will submit a batch of pull-up requests for netbsd-1-6
presently to bring these additions and fixes into 1.6.
2002-06-10 18:47:12 +00:00
mrg 2e2c2dfb4f do not overwrite ${ZIC} if it is already set. 2002-01-05 07:35:20 +00:00
lukem b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
perry d52d36ecc5 Uncomment a bunch of seemingly unused rules. It seems several people
do indeed use them in their private builds. Pointed out by Alan Barrett.
2001-11-26 15:24:20 +00:00
perry 88592afd34 1) Synthetically generate metadata for installed files when UNPRIVED
is set.
2) Remove the default timezone line, which noted that the
   functionality was now in src/etc/Makefile.
3) Comment out a huge swath of the file that repeated tests reveal
   never seem to be invoked -- they're apparently for generating zone
   files that include leap seconds and such. Must talk to Klaus about
   what they are for and whether we need them.
2001-11-24 21:37:23 +00:00
perry 2f370e4778 UNPRIVILEGED->UNPRIVED 2001-11-19 05:18:53 +00:00
simonb ba77c9abaf Don't chown installed files or directories if UNPRIVILEGED is defined.
"make build" should now work as a non-root user (tested on Alpha).
mtree spits out lots of warnings during "make distrib-dirs", but
these are non-fatal.
1999-08-21 06:30:11 +00:00
lukem dcab0210a0 convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
lukem 9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
jtc 66de380294 Add NOOBJ=. Remove (cd ${.CURDIR}; ... ). 1997-06-18 01:56:03 +00:00
jtc 0f3df805c6 Remove datfiles subdirectory, it's a remanent from long ago. 1997-06-18 01:27:43 +00:00
mycroft 6df71800cb Use afterinstall, not realinstall, for data files. 1997-05-07 16:12:00 +00:00
mycroft aec27c808c Add some missing .PHONYs. 1997-05-07 09:43:32 +00:00
perry 2a9ecb70c3 close pr-3111 -- use sh to invoke script instead of executing 1997-01-16 21:17:53 +00:00
cgd 31be280321 explicitly set zoneinfo files to be read-only by everyone. fixes pr 984 1995-04-22 12:10:17 +00:00
jtc fe94427322 No longer build zic. 1995-03-11 01:27:43 +00:00
cgd 06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
cgd c27ff9fe55 dtrt with permissions 1994-02-10 04:42:42 +00:00
davidb 4fa3f35e89 Changed to use make's new .OBJDIR 1993-12-28 12:03:24 +00:00
cgd 50483b67ec add entry for russia zone list 1993-09-17 23:58:57 +00:00
cgd 8a641487bb fix typo, and use "posix_only" rather than "right_only". everything
else in the world, i.e. other UNIX boxes, and WWV, are == "posix_only"
1993-09-02 01:10:03 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
deraadt 64f9e04df7 /etc/localtime is not created by "make install" here anymore. That
was just too inconvenient.
1993-05-25 09:18:44 +00:00
mycroft b3c060ba98 Define `realinstall' target, not `install', and let bsd.prog.mk do dependencies. 1993-04-26 03:55:58 +00:00
mycroft 5f24c6fc72 Use global value of CFLAGS for optimization. 1993-04-26 03:43:48 +00:00
glass 46a78ad98e Now installs zic(8) man page 1993-04-03 00:37:53 +00:00
cgd 4476d06142 now symlinks /etc/localtime to the right thing, rather than making
a copy (or trying to).
1993-03-30 00:31:52 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00