1 2018-04-20 Simon J Gerraty <sjg@beast.crufty.net>
3 * install-mk (MK_VERSION): 20180420
4 * dirdeps.mk: include local.dirdeps-build.mk when .MAKE.LEVEL > 0
5 ie. we are building something.
7 2018-04-14 Simon J Gerraty <sjg@beast.crufty.net>
9 * FILES: add dirdeps-options.mk to deal with optional DIRDEPS.
11 2018-04-05 Simon J Gerraty <sjg@beast.crufty.net>
13 * install-mk (MK_VERSION): 20180405
15 * ldorder.mk: describe how to use LDORDER_EXTERN_BARRIER
18 2018-01-18 Simon J Gerraty <sjg@beast.crufty.net>
20 * install-mk (MK_VERSION): 20180118
22 * ldorder.mk: let make compute correct link order
24 2017-12-12 Simon J Gerraty <sjg@beast.crufty.net>
26 * install-mk (MK_VERSION): 20171212
28 * gendirdeps.mk: guard against bogus entries in GENDIRDEPS_FILTER
30 2017-11-14 Simon J. Gerraty <sjg@bad.crufty.net>
32 * install-mk (MK_VERSION): 20171111
34 * lib.mk: ensure META_NOECHO is set
36 2017-10-25 Simon J. Gerraty <sjg@bad.crufty.net>
38 * Allow for host32 on rare occasions.
40 2017-10-18 Simon J. Gerraty <sjg@bad.crufty.net>
42 * install-mk (MK_VERSION): 20171018
44 * whats.mk: include what_thing in what_uuid to avoid problem
45 when building multiple apps in the same directory.
47 2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net>
49 * install-mk (MK_VERSION): 20170812
51 * autoconf.mk: Use CONFIGURE_DEPS so Makefile can
52 add dependencies for config.recheck and config.gen
54 2017-06-30 Simon J. Gerraty <sjg@bad.crufty.net>
56 * install-mk (MK_VERSION): 20170630
58 * meta.stage.mk: avoid triggering stage_* targets with nothing to do.
60 2017-05-23 Simon J. Gerraty <sjg@bad.crufty.net>
62 * meta2deps.py: take special care of '..'
64 2017-05-15 Simon J. Gerraty <sjg@bad.crufty.net>
66 * install-mk (MK_VERSION): 20170515
68 * dirdeps.mk (DEP_EXPORT_VARS): on rare occasions it is
69 useful/necessary for a Makefile.depend file to export some knobs.
70 This is complicated when we are doing DIRDEPS_CACHE, so we will
71 handle export of any variables listed in DEP_EXPORT_VARS.
73 2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net>
75 * install-mk (MK_VERSION): 20170505
77 * meta2deps.py: fix botched indenation.
79 2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net>
81 * sys/*.mk: Remove setting of MAKE it is unnecessary and
82 in many cases wrong (basname rather than full path)
84 * scripts.mk (SCRIPTSGROUPS): make this more like files.mk and inc.mk
86 * init.mk: define realbuild to simplify logic in {lib,prog}.mk etc
88 2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net>
90 * install-mk (MK_VERSION): 20170501
92 * doc.mk: fix typo in DOC_INSTALL_OWN
94 * inc.mk: handle INCGROUPS similar to freebsd
96 * files.mk: add something for files too
98 * add staging logic to lib.mk prog.mk etc.
100 2017-04-24 Simon J. Gerraty <sjg@bad.crufty.net>
102 * install-mk (MK_VERSION): 20170424
104 * dirdeps.mk: set NO_DIRDEPS when bootstrapping.
105 also target of bootstrap-this when sed is needed should be ${_want:T}
107 2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net>
109 * install-mk (MK_VERSION): 20170418
111 * auto.obj.mk: if using MAKEOBJDIRPREFIX check if it is a
112 prefix match for .CURDIR - in which case .CURDIR *is* __objdir.
114 2017-04-01 Simon J. Gerraty <sjg@bad.crufty.net>
116 * install-mk (MK_VERSION): 20170401
118 * meta2deps.py: add is_src so we can check if obj dependency
119 is also a src dependency.
121 2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net>
123 * install-mk (MK_VERSION): 20170326
125 * meta.stage.mk: do nothing if NO_STAGING is defined.
127 2017-03-24 Simon J. Gerraty <sjg@bad.crufty.net>
129 * auto.obj.mk: handle the case of __objdir=obj or obj.${MACHINE} etc.
131 2017-03-18 Simon J. Gerraty <sjg@bad.crufty.net>
133 * mkopt.sh: treat WITH_*=NO like no; ie. WITHOUT_*
135 2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net>
137 * install-mk (MK_VERSION): 20170301
139 * dirdeps.mk (_build_all_dirs): update this outside test for empty
142 * meta.stage.mk: allow multiple inclusion to the extent it makes
145 2017-02-14 Simon J. Gerraty <sjg@bad.crufty.net>
147 * prog.mk (install_links): depends on realinstall
149 2017-02-12 Simon J. Gerraty <sjg@bad.crufty.net>
151 * install-mk (MK_VERSION): 20170212
153 * dpadd.mk: avoid applying :T:R twice to DPLIBS entries
155 2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net>
157 * install-mk (MK_VERSION): 20170130
159 * dirdeps.mk: use :range if we can.
161 * sys.vars.mk: provide M_cmpv if MAKE_VERSION >= 20170130
163 * meta2deps.py: clean paths without using realpath() where possible.
166 2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net>
168 * install-mk (MK_VERSION): 20161212
170 * meta2deps.py: set pid_cwd[pid] when we process 'C'hdir,
171 rather than when we detect pid change.
173 2016-12-07 Simon J. Gerraty <sjg@bad.crufty.net>
175 * install-mk (MK_VERSION): 20161207
177 * meta.stage.mk: add stage_as_and_symlink for staging packages.
178 We build foo.tgz stage_as foo-${VERSION}.tgz but want to be able
179 to use foo.tgz to reference the latest staged version - so we
180 make foo.tgz a symlink to it.
181 Using a target to do both operations ensures we stay in sync.
183 2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net>
185 * install-mk (MK_VERSION): 20161126
187 * dirdeps.mk: set DIRDEPS_CACHE before we include local.dirdeps.mk
188 so it can add dependencies.
190 2016-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
192 * dirdeps.mk: set DEP_* before we expand .MAKE.DEPENDFILE_PREFERENCE
193 do that they can influence the result correctly.
195 * dirdeps.mk (${DIRDEPS_CACHE}): make sure we pass on TARGET_SPEC
197 * dirdeps.mk: Add ONLY_TARGET_SPEC_LIST and NOT_TARGET_SPEC_LIST
198 similar to ONLY_MACHINE_LIST and NOT_MACHINE_LIST
200 2016-10-05 Simon J. Gerraty <sjg@bad.crufty.net>
202 * dirdeps.mk: remove dependence on jot (normal situations anyway).
203 Before we read another Makefile.depend* set DEP_* vars from
204 _DEP_TARGET_SPEC in case it uses any of them with :=
205 When bootstrapping, trim any ,* from extention of chosen _src
206 Makefile.depend* to get the machine value we subst for.
208 2016-09-30 Simon J. Gerraty <sjg@bad.crufty.net>
210 * dirdeps.mk: use TARGET_SPEC_VARS to qualify components added to
211 DEP_SKIP_DIR and DEP_DIRDEPS_FILTER
213 * sys.mk: extract some bits to sys.{debug,vars}.mk
214 for easier re-use by others.
216 2016-09-23 Simon Gerraty <sjg@sjg-mba13>
218 * lib.mk: Use ${PICO} for extension for PIC objects.
219 default to .pico (like NetBSD) safe on case insensitive filesystem.
221 2016-08-19 Simon J. Gerraty <sjg@bad.crufty.net>
223 * meta.sys.mk (META_COOKIE_TOUCH): use ${.OBJDIR}/${.TARGET:T} as default
225 2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net>
227 * install-mk (MK_VERSION): 20160815
229 * dirdeps.mk (.MAKE.META.IGNORE_FILTER): set filter to only
230 consider Makefile.depend* when checking if DIRDEPS_CACHE is up-to-date.
232 2016-08-13 Simon J. Gerraty <sjg@bad.crufty.net>
234 * meta.sys.mk (.MAKE.META.IGNORE_PATHS):
235 in meta mode we can ignore the mtime of makefiles
237 2016-08-02 Simon J. Gerraty <sjg@bad.crufty.net>
239 * install-mk (MK_VERSION): 20160802
241 * lib.mk (libinstall): depends on beforinstall
243 * prog.mk (proginstall): depends on beforinstall
244 patch from Lauri Tirkkonen
246 * dirdeps.mk (bootstrap): When bootstrapping; creat
247 .MAKE.DEPENDFILE_DEFAULT and allow additional filtering via
248 .MAKE.DEPENDFILE_BOOTSTRAP_SED
250 * dirdeps.mk: move some comments to where they make sense.
252 2016-07-27 Simon J. Gerraty <sjg@bad.crufty.net>
254 * dirdeps.mk (DIRDEPS_CACHE): no dirname.
256 2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net>
258 * install-mk (MK_VERSION): 20160602
259 * meta.autodep.mk: when passing META_FILES to gendirdeps.mk
260 do not apply :T to META_XTRAS
261 patch from Bryan Drewery at FreeBSD.org.
263 2016-05-30 Simon J. Gerraty <sjg@bad.crufty.net>
265 * install-mk (MK_VERSION): 20160530
266 * meta.stage.mk: we assume ${CLEANFILES} gets .NOPATH
269 2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net>
271 * install-mk (MK_VERSION): 20160512
273 * dpadd.mk: always include local.dpadd.mk if it exists
274 remove some things that better belong in local.dpadd.mk
275 skip INCLUDES_* for staged libs unless SRC_* defined.
277 * own.mk: add INCLUDEDIR
279 2016-04-18 Simon J. Gerraty <sjg@bad.crufty.net>
281 * dirdeps.mk: when doing -f dirdeps.mk if target suppies no
282 TARGET_MACHINE - :E will be empty or match part of path, use
285 2016-04-07 Simon J. Gerraty <sjg@bad.crufty.net>
287 * meta.autodep.mk: issue a warning if UPDATE_DEPENDFILE=NO due to
290 * dirdeps.mk: move the logic that allows for
291 make -f dirdeps.mk some/dir.${TARGET_SPEC}
292 inside the check for !target(_DIRDEP_USE)
294 2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net>
296 * Use <> when including local*.mk and others which may exist
297 elsewhere so that user can better control what they get.
299 * meta.autodep.mk (NO_FILEMON_COOKIE):
300 create a cookie if we ever build dir with nofilemon
301 so that UPDATE_DEPENDFILE will be forced to NO until cleaned.
303 2016-04-01 Simon J. Gerraty <sjg@bad.crufty.net>
305 * install-mk (MK_VERSION): 20160401
307 * meta2deps.py: fix old print statement when debugging.
309 * gendirdeps.mk: META2DEPS_CMD append M2D_EXCLUDES with -X
310 patch from Bryan Drewery
312 2016-03-22 Simon J. Gerraty <sjg@bad.crufty.net>
314 * install-mk (MK_VERSION): 20160317 (St. Pats)
316 * warnings.mk: g++ does not like -Wimplicit
318 * sys.mk sys/*.mk lib.mk prog.mk: use CXX_SUFFIXES to handle the
319 pelthora of common suffixes for C++
321 * lib.mk: use .So for shared objects
323 2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net>
325 * install-mk (MK_VERSION): 20160315
327 * meta.stage.mk (LN_CP_SCRIPT): do not ln(1) if we have to chmod(1)
328 normally only applies to scripts.
330 * dirdeps.mk: NO_DIRDEPS_BELOW to supress DIRDEPS below RELDIR as
333 2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net>
335 * install-mk (MK_VERSION): 20160310
337 * dirdeps.mk: use targets rather than a list to track DIRDEPS that
338 we have processed; the list gets very inefficient as number of
341 * sys.dependfile.mk: fix comment wrt MACHINE
343 * meta.autodep.mk: ignore staged DPADDs when bootstrapping.
344 patch from Bryan Drewery
346 2016-03-02 Simon J. Gerraty <sjg@bad.crufty.net>
348 * meta2deps.sh: don't ignore subdirs.
349 patch from Bryan Drewery
351 2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net>
353 * install-mk (MK_VERSION): 20160226
355 * gendirdeps.mk: mark _DEPENDFILE .NOMETA
357 2016-02-20 Simon J. Gerraty <sjg@bad.crufty.net>
359 * dirdeps.mk: we shouldn't normally include .depend but if we do
360 use .dinclude if we can.
362 2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net>
364 * install-mk (MK_VERSION): 20160218
365 * sys.clean-env.mk: with recent change to Var_Subst()
366 we cannot use the '$$' trick, but .export-literal does the job
368 * auto.dep.mk: make use .dinclude if we can.
371 2016-02-05 Simon J. Gerraty <sjg@bad.crufty.net>
374 Add _build_all_dirs such that local.dirdeps.mk can
375 add fully qualified dirs to it.
376 These will be built normally but the current
377 DEP_RELDIR will not depend on then (to avoid cycles).
378 This makes it easy to hook things like unit-tests into build.
381 2016-01-21 Simon J. Gerraty <sjg@bad.crufty.net>
383 * dirdeps.mk: add bootstrap-empty
385 2015-12-12 Simon J. Gerraty <sjg@bad.crufty.net>
387 * install-mk (MK_VERSION): 20151212
388 * auto.obj.mk: do not require MAKEOBJDIRPREFIX to exist.
389 only apply :tA to __objdir when comparing to .OBJDIR
391 2015-11-14 Simon J. Gerraty <sjg@bad.crufty.net>
393 * install-mk (MK_VERSION): 20151111
395 * meta.sys.mk: include sys.dependfile.mk
397 * sys.mk (OPTIONS_DEFAULT_NO): use options.mk
398 to set MK_AUTO_OBJ and MK_DIRDEPS_BUILD
399 include local.sys.env.mk early
400 include local.sys.mk later
402 * own.mk (OPTIONS_DEFAULT_NO): AUTO_OBJ etc moved to sys.mk
404 2015-11-13 Simon J. Gerraty <sjg@bad.crufty.net>
406 * meta.sys.mk (META_COOKIE_TOUCH):
407 add ${META_COOKIE_TOUCH} to the end of scripts to touch cookie
409 * meta.stage.mk: stage_libs should ignore SYMLINKS.
411 2015-10-23 Simon J. Gerraty <sjg@bad.crufty.net>
413 * install-mk (MK_VERSION): 20151022
415 * sys.mk: BSD/OS does not have 'type' as a shell builtin.
417 2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net>
419 * install-mk (MK_VERSION): 20151020
421 * dirdeps.mk: Add logic for
422 make -f dirdeps.mk some/dir.${TARGET_SPEC}
424 2015-10-14 Simon J. Gerraty <sjg@bad.crufty.net>
426 * install-mk (MK_VERSION): 20151010
428 2015-10-02 Simon J. Gerraty <sjg@bad.crufty.net>
430 * meta.stage.mk: use staging: ${STAGE_TARGETS:...
431 to have stage_lins run last in non-jobs mode.
432 Use .ORDER only for jobs mode.
434 2015-09-02 Simon J. Gerraty <sjg@bad.crufty.net>
436 * rst2htm.mk: allow for per target flags etc.
438 2015-09-01 Simon J. Gerraty <sjg@bad.crufty.net>
440 * install-mk (MK_VERSION): 20150901
442 * doc.mk: create dir if needed use DOC_INSTALL_OWN
444 2015-06-15 Simon J. Gerraty <sjg@bad.crufty.net>
446 * install-mk (MK_VERSION): 20150615
448 * auto.obj.mk: allow use of MAKEOBJDIRPREFIX too.
449 Follow make's normal precedence rules.
451 * gendirdeps.mk: allow customization of the header.
453 GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}';
455 * meta.autodep.mk: ignore dirdeps.cache*
457 * meta.stage.mk: when bootstrapping options it can be handy to
458 throw warnings rather than errors for staging conflicts.
460 * meta.sys.mk: include local.meta.sys.mk for customization
462 2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net>
464 * install-mk (MK_VERSION): 20150606
466 * dirdeps.mk: don't rely on manually maintained Makefile.depend
467 to set DEP_RELDIR and reset DIRDEPS.
468 By setting DEP_RELDIR ourselves we can skip :tA
470 * gendirdeps.mk: skip setting DEP_RELDIR.
472 2015-05-24 Simon J. Gerraty <sjg@bad.crufty.net>
474 * dirdeps.mk: avoid wildcards like make(bootstrap*)
476 2015-05-20 Simon J. Gerraty <sjg@bad.crufty.net>
478 * install-mk (MK_VERSION): 20150520
480 * dirdeps.mk: when we are building dirdeps cache file we *want*
481 meta_oodate to look at all the Makefile.depend files, so
482 set .MAKE.DEPENDFILE to something that won't match.
484 * meta.stage.mk: for STAGE_AS_* basename of file may not be unique
485 so first use absolute path as key.
486 Also skip staging at level 0.
488 2015-04-30 Simon J. Gerraty <sjg@bad.crufty.net>
490 * install-mk (MK_VERSION): 20150430
492 * dirdeps.mk: fix _count_dirdeps for non-cache case.
494 2015-04-16 Simon J. Gerraty <sjg@bad.crufty.net>
496 * install-mk (MK_VERSION): 20150411
499 * own.mk: put AUTO_OBJ in OPTIONS_DEFAULT_NO rather than YES.
500 it is here mainly for documentation purposes, since
501 if using auto.obj.mk it is better done via sys.mk
503 2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net>
505 * install-mk (MK_VERSION): 20150401
507 * meta2deps.sh: support @list
509 * meta2deps.py: updates from Juniper
511 o skip bogus input files.
512 o treat 'M' and 'L' as both an 'R' and a 'W'
514 2015-03-03 Simon J. Gerraty <sjg@bad.crufty.net>
516 * install-mk (MK_VERSION): 20150303
518 * dirdeps.mk: if MK_DIRDEPS_CACHE is yes, use dirdeps-cache
519 which is built via sub-make so we have a .meta file to tell if
521 The dirdeps-cache contains the same dependency rules that we
522 normaly construct on the fly.
523 This adds a few seconds overhead when the cache is out of date,
524 but for a large target, the savings can be significant (10-20min).
526 2014-11-18 Simon J. Gerraty <sjg@bad.crufty.net>
528 * install-mk (MK_VERSION): 20141118
530 * meta.stage.mk: add stale_staged
532 * dirdeps.mk (_DIRDEP_USE_LEVEL): allow this to be tweaked
533 only useful under very rare conditions such as
534 FreeBSD's make universe.
536 * auto.obj.mk: Allow MK_AUTO_OBJ to set MKOBJDIRS=auto
538 2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net>
540 * install-mk (MK_VERSION): 20141111
542 * mkopt.sh: use consistent semantics for _mk_opt and _mk_opts
544 2014-11-09 Simon J. Gerraty <sjg@bad.crufty.net>
546 * FILES: include mkopt.sh which allows handling options in shell
547 scripts in a manner compatible with options.mk
549 2014-10-12 Simon J. Gerraty <sjg@bad.crufty.net>
551 * meta.stage.mk: ensure only _STAGED_DIRS under objroot are used
552 for GENDIRDEPS_FILTER to avoid surprises.
554 2014-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
556 * dirdeps.mk (NSkipHostDir): this needs SRCTOP prepended since by
557 the time it is applied to __depdirs they have.
559 * dirdeps.mk fix filtering of _machines since M_dep_qual_fixes
560 expects patterns like *.${MACHINE}
562 * cython.mk (pyprefix?): use pyprefix to find python bits
563 since prefix might be something else (where we install our
566 2014-09-11 Simon J. Gerraty <sjg@bad.crufty.net>
568 * install-mk (MK_VERSION): 20140911
570 * dirdeps.mk: add bootstrap target to simplify adding support for
573 2014-09-01 Simon J. Gerraty <sjg@bad.crufty.net>
575 * gendirdeps.mk: Add handling of GENDIRDEPS_FILTER_DIR_VARS and
576 GENDIRDEPS_FILTER_VARS to make it easier to produce sharable
577 Makefile.depend files.
579 2014-08-28 Simon J. Gerraty <sjg@bad.crufty.net>
581 * install-mk (MK_VERSION): 20140828
583 * cython.mk: capture logic for building python extension modules
586 2014-08-08 Simon J. Gerraty <sjg@bad.crufty.net>
588 * meta.stage.mk (_STAGE_AS_BASENAME_USE): Add StageAs variant
590 2014-08-02 Simon J. Gerraty <sjg@bad.crufty.net>
592 * install-mk (MK_VERSION): 20140801
594 * dep.mk: use explicit MKDEP_MK rather than overload MKDEP to
595 identify the autodep.mk variant.
597 * sys.dependfile.mk: delete .MAKE.DEPENDFILE if its
598 initial value does not match .MAKE.DEPENDFILE_PREFIX
600 * meta.autodep.mk: if _bootstrap_dirdeps add RELDIR to DIRDEPS
602 2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net>
604 * install-mk (MK_VERSION): 20140522
606 * lib.mk: use CC to link shlib for linux too
607 patch from Brendan MacDonell
609 2014-05-05 Simon J. Gerraty <sjg@bad.crufty.net>
611 * meta.autodep.mk: add _reldir_{finish,failed} for gathering stats
612 if WITH_META_STATS is defined.
614 2014-05-02 Simon J. Gerraty <sjg@bad.crufty.net>
616 * dirdeps.mk: accept -DWITHOUT_DIRDEPS (same a as -DNO_DIRDEPS)
617 to supress dirdeps outside of .CURDIR.
619 2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net>
621 * Fix spelling errors - patch from Pedro Giffuni
623 2014-03-14 Simon J. Gerraty <sjg@bad.crufty.net>
625 * install-mk (MK_VERSION): 20140314
627 * dirdeps.mk (beforedirdeps): a handy hook
629 * dirdeps.mk (DIRDEP_MAKE): allow the actual command we run
630 to visit leaf dirs to be intercepted (eg. for distributed
633 * dirdeps.mk (__depdirs): ensure // don't sneak in
635 * gendirdeps.mk (DIRDEPS): ensure // don't sneak in
638 2014-02-21 Simon J. Gerraty <sjg@bad.crufty.net>
640 * rst2htm.mk (RST2PDF): add support for rst2pdf
642 2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net>
644 * install-mk (MK_VERSION): bump version
645 * dirdeps.mk (_last_dependfile): use .INCLUDEDFROMFILE if
648 2014-02-10 Simon J. Gerraty <sjg@bad.crufty.net>
650 * options.mk: avoid :U so this isn't bmake dependent
652 2014-02-09 Simon J. Gerraty <sjg@bad.crufty.net>
654 * options.mk: cleanup and simplify semanitcs
655 NO_* dominates all, if both WITH_* and WITHOUT_*
656 are defined then result is DOMINATE_* which defaults to "no".
657 Ie. WITHOUT_ normally wins.
659 2013-12-12 Simon J. Gerraty <sjg@bad.crufty.net>
661 * install-mk (MK_VERSION): bump version
662 * meta2deps.py: convert to print function for python3 compat.
663 we also need to open files with mode 'r' rather than 'rb'
664 otherwise we get bytes instead of strings.
666 2013-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
668 * install-mk (MK_VERSION): bump version
670 * dirdeps.mk: when TARGET_SPEC_VARS is more than just MACHINE
671 apply the same filtering (M_dep_qual_fixes) when setting _machines
673 Also fix the filtering of Makefile.depend files - for reporting
674 what we are looking for (M_dep_qual_fixes can get confused by
676 Add some more debug info.
678 2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net>
680 * gendirdeps.mk (_objtops): fix typo also
681 while processing M2D_OBJROOTS to gather qualdir_list
682 qualify $ql with loop iterator to ensure correct results.
684 2013-08-01 Simon J. Gerraty <sjg@bad.crufty.net>
686 * install-mk (MK_VERSION): 20130801
687 * libs.mk: update to match progs.mk
689 2013-07-26 Simon J. Gerraty <sjg@bad.crufty.net>
691 * install-mk (MK_VERSION): 20130726
692 some updates from Juniper and FreeBSD
693 o meta2deps.py: indicate file and line number when we hit parse
695 also allow @file to provide huge list of .meta files.
696 * meta2deps.py: add try_parse() to cleanup the above.
698 2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net>
700 * install-mk (MK_VERSION): 20130716
701 * own.mk: add GPROG as an option
702 * prog.mk: honor MK_GPROF==yes
704 2013-05-10 Simon J. Gerraty <sjg@bad.crufty.net>
706 * install-mk (MK_VERSION): 20130505
707 * gendirdeps.mk, meta2deps.py, meta2deps.sh: handle $TARGET_SPEC
708 for when $MACHINE isn't enough for objdir distinction.
709 Bring meta2deps.sh closer to par with meta2deps.py.
711 2013-04-18 Simon J. Gerraty <sjg@bad.crufty.net>
713 * meta.stage.mk: set INSTALL to STAGE_INSTALL when making 'all'
714 also if the target 'beforeinstall' exists, make it depend on
715 .dirdep (incase it uses STAGE_INSTALL).
717 2013-04-17 Simon J. Gerraty <sjg@bad.crufty.net>
719 * install-mk (MK_VERSION): 20130401 ;-)
720 * meta.stage.mk (STAGE_INSTALL_SH): add stage-install.sh as
721 wrapper around install(1).
722 * options.mk (OPTION_PREFIX): Allow a prefix other than MK_
724 2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net>
726 * meta2deps.py (MetaFile.__init__): ensure self.cwd is initialized.
727 * install-mk (MK_VERSION): bump version
729 2013-03-21 Simon J. Gerraty <sjg@bad.crufty.net>
731 * install-mk (MK_VERSION): bump version
732 * gendirdeps.mk: do not apply :tA to DPADD entries, since we lose
733 any trailing /., rather apply :tA only when needed.
734 * gendirdeps.mk: better mimic meta2deps handling of .dirdep files.
735 * meta.stage.mk (LN_CP_SCRIPT): Add LnCp to do the ln||cp dance
737 * dirdeps.mk: better describe the dance in sys.mk for TARGET_SPEC.
739 2013-03-18 Simon J. Gerraty <sjg@bad.crufty.net>
741 * gendirdeps.mk: revert the dance around .MAKE.DEPENDFILE_DEFAULT
742 it is simpler to just not update when say building for "host"
743 (where we know we apply filters to DIRDEPS), and using a
744 non-machine qualified dependfile.
746 2013-03-16 Simon J. Gerraty <sjg@bad.crufty.net>
748 * dirdeps.mk: improve DIRDEPS filtering by allowing DEP_SKIP_DIR
749 and DEP_DIRDEPS_FILTER to vary by DEP_MACHINE and DEP_TARGET_SPEC
750 * gendirdeps.mk: ensure _objroot has trailing / if it needs it.
751 * meta2deps.py: if machine is "host", then also trim
752 self.host_target from any OBJROOTS.
755 2013-03-11 Simon J. Gerraty <sjg@bad.crufty.net>
757 * gendirdeps.mk: if .MAKE.DEPENDFILE_DEFAULT is not machine
758 qualified but _DEPENDFILE is, and .MAKE.DEPENDFILE_DEFAULT exists
759 but _DEPENDFILE does not, compare the new _DEPENDFILE against
760 .MAKE.DEPENDFILE_DEFAULT and discard if the same.
762 2013-03-08 Simon J. Gerraty <sjg@bad.crufty.net>
764 * meta.stage.mk: use STAGE_TARGETS to control .ORDER
765 and hook to all: via staging:
767 2013-03-07 Simon J. Gerraty <sjg@bad.crufty.net>
769 * sys.dependfile.mk (.MAKE.DEPENDFILE_DEFAULT):
770 use a separate variable for the default .MAKE.DEPENDFILE value
771 so that it can be controlled independently of
772 .MAKE.DEPENDFILE_PREFERENCE
774 * meta.stage.mk: throw error if cp fails etc.
775 Stage*() return early if passed no args.
778 2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net>
780 * install-mk (MK_VERSION): bump version
781 * gendirdeps.mk: handle multiple M2D_OBJROOTS better.
783 2013-02-10 Simon J. Gerraty <sjg@bad.crufty.net>
785 * install-mk (MK_VERSION): bump version to 20130210
786 * import latest dirdeps.mk, gendirdeps.mk and meta2deps.py
788 o dirdeps.mk now fully supports TARGET_SPEC consisting of more
790 o no longer use DEP_MACHINE from Makefile.depend* so remove it.
792 2013-01-23 Simon J. Gerraty <sjg@bad.crufty.net>
794 * install-mk (MK_VERSION): bump version to 20130123
795 * meta.stage.mk: add stage_links (hard links).
796 if doing hard links, we add dest to link as well.
797 Default the stage dir for [sym]links to STAGE_OBJTOP since
798 these are typically specified as absolute paths.
799 Add -m "mode" flag to StageFiles and StageAs.
801 2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net>
803 * install-mk (MK_VERSION): bump version to 20121111
804 * autoconf.mk: avoid meta mode seeing changed commands for config.status
805 * meta.autodep.mk: pass resolved MAKESYSPATH to gendirdeps
806 in case we were found via .../mk
807 * sys.clean-env.mk: move it from examples, we and others use it
809 * FILES: add srctop.mk and options.mk
810 * own.mk: convert to using options.mk
811 which is modeled after FreeBSD's handling of MK_*
813 This allows MK_* for boolean knobs to not be confused
814 with MK* which can be commands.
816 * examples/sys.clean-env.mk: add WITH[OUT]_ to
817 MAKE_ENV_SAVE_PREFIX_LIST.
818 Mention that HOME=/var/empty might be a good idea.
820 2012-11-08 Simon J. Gerraty <sjg@bad.crufty.net>
822 * sys.dependfile.mk: if not depend file exists, $MACHINE
823 specific ones are supported but not the default,
824 check if any exist and follow suit.
826 2012-11-06 Simon J. Gerraty <sjg@bad.crufty.net>
828 * install-mk (MK_VERSION): bump version to 20121106
830 2012-11-05 Simon J. Gerraty <sjg@bad.crufty.net>
832 * import latest dirdeps.mk and meta2deps.py from Juniper.
833 * progs.mk: add MAN and CXXFLAGS to PROG_VARS
834 also add PROGS_TARGETS and pass on PROG_CXX if it seems
837 2012-11-04 Simon J. Gerraty <sjg@bad.crufty.net>
839 * meta.stage.mk: update CLEANFILES
840 remove redundant cp of .dirdep from STAGE_AS_SCRIPT.
841 * progs.mk: Add LDADD to PROG_VARS
843 2012-10-12 Simon J. Gerraty <sjg@bad.crufty.net>
845 * meta.stage.mk (STAGE_DIR_FILTER): track dirs we stage to in
846 _STAGED_DIRS so that these can be turned into filters for
849 2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
851 * install-mk (MK_VERSION): bump version to 20121010
852 * meta.stage.mk (STAGE_DIRDEP_SCRIPT): check that an existing
853 target.dirdep matches .dirdep
855 2012-08-08 Simon J. Gerraty <sjg@bad.crufty.net>
857 * install-mk (MK_VERSION): bump version to 20120808
858 * import latest meta2deps.py from Juniper.
860 2012-07-11 Simon J. Gerraty <sjg@bad.crufty.net>
862 * install-mk (MK_VERSION): bump version to 20120711
863 * dep.mk: add explicit dependencies on SRCS after applying
865 * meta.autodep.mk: add explicit dependencies on SRCS after
866 applying SRCS_DEP_FILTER
867 * meta.autodep.mk: ensure GENDIRDEPS_FILTER is exported if needed.
869 2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net>
871 * install-mk (MK_VERSION): bump version to 20120626
872 * meta.sys.mk: ignore PYTHON if it does not exist
873 compare ${.MAKE.DEPENDFILE:E} against ${MACHINE} is more reliable.
874 * meta.stage.mk: examine .MAKE.DEPENDFILE_PREFERENCE for any
875 entries ending in .${MACHINE} to decide if qualified _dirdep is
877 * gendirdeps.mk: only produce unqualified deps if no
878 .MAKE.DEPENDFILE_PREFERENCE ends in .${MACHINE}
879 * meta.subdir.mk: apply SUBDIRDEPS_FILTER
881 2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net>
883 * install-mk (MK_VERSION): bump version to 20120420
884 * add sys.dependfile.mk so we can experiment with
885 .MAKE.DEPENDFILE_PREFERENCE
886 * meta.autodep.mk: _DEPENDFILE is precious!
888 2012-03-15 Simon J. Gerraty <sjg@bad.crufty.net>
890 * install-mk (MK_VERSION): bump version to 20120315
891 * install-new.mk: avoid being interrupted
893 2012-02-26 Simon J. Gerraty <sjg@bad.crufty.net>
895 * man.mk: MAN might have multiple values so be careful with exists().
897 2012-01-19 Simon J. Gerraty <sjg@bad.crufty.net>
899 * install-mk (MK_VERSION): bump version to 20120112
900 * fix examples/sys.clean-env.mk so that MAKEOBJDIR is handled
901 as: MAKEOBJDIR='${.CURDIR:S,${SRCTOP},${OBJTOP},}'
903 2011-12-03 Simon J. Gerraty <sjg@bad.crufty.net>
905 * install-mk (MK_VERSION): bump version to 20111201
906 * import dirdeps.mk from Juniper sjg@
907 o more consistent handling of DEP_MACHINE, especially when
908 dealing with an odd Makefile.depend, when normally using
909 Makefile.depend.${MACHINE}
911 2011-11-22 Simon J. Gerraty <sjg@bad.crufty.net>
913 * install-mk (MK_VERSION): bump version to 20111122
914 * meta.autodep.mk: add some debug output, be more crisp about
915 updating. Use ${.ALLTARGETS:M*.o} as a clue for .depend
917 2011-11-13 Simon J. Gerraty <sjg@bad.crufty.net>
919 * install-mk (MK_VERSION): bump version to 20111111
920 it's too cool to miss
921 * import meta* updates from Juniper sjg@
922 o dirdeps.mk set DEP_MACHINE for Makefile.depend (when we are
923 normally using Makefile.depend.${MACHINE}), handy for
924 read-only manually maintained dependencies.
925 o meta2deps.py add a clear 'ERROR:' token if an exception is raised.
926 o gendirdeps.mk if ERROR: from meta2deps.py do not update
929 2011-10-30 Simon J. Gerraty <sjg@bad.crufty.net>
931 * install-new.mk separate the cmp and copy logic to its own function.
933 2011-10-28 Simon J. Gerraty <sjg@bad.crufty.net>
935 * install-mk (MK_VERSION): bump version to 20111028
936 * sys.mk: include auto.obj.mk if MKOBJDIRS is set to auto
937 * subdir.mk: ensure _SUBDIRUSE is provided
938 * meta.autodep.mk: remove dependency of gendirdeps.mk on auto.obj.mk
939 * meta.subdir.mk: always allow for Makefile.depend
941 2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net>
943 * install-mk (MK_VERSION): bump version to 20111010
944 o minor tweak to *dirdeps.mk from Juniper sjg@
946 2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net>
948 * install-mk (MK_VERSION): bump version to 20111001
949 o add meta2deps.py from Juniper sjg@
950 o tweak gendirdeps.mk to work with meta2deps.py when not
952 * autoconf.mk: add autoconf-input as a hook for regenerating
953 AUTOCONF_INPUTS (configure).
955 2011-08-24 Simon J. Gerraty <sjg@bad.crufty.net>
957 * meta.autodep.mk: if we do not have OBJS, .depend isn't a useful
958 trigger for updating Makefile.depend*
960 2011-08-08 Simon J. Gerraty <sjg@bad.crufty.net>
962 * install-mk (MK_VERSION): bump version to 20110808
963 * obj.mk: minor cleanup
964 * auto.obj.mk: improve description of Mkdirs and honor NO_OBJ too.
966 2011-08-01 Simon J. Gerraty <sjg@bad.crufty.net>
968 * auto.obj.mk (.OBJDIR): throw an error if we cannot use the
971 2011-06-28 Simon J. Gerraty <sjg@bad.crufty.net>
973 * meta.autodep.mk: if XMAKE_META_FILE is set
974 the makefile uses a foreign make, and so dependencies
975 can only be gathered from a clean tree build.
977 2011-06-24 Simon J. Gerraty <sjg@bad.crufty.net>
979 * install-mk (MK_VERSION): bump version to 20110622
980 * meta.autodep.mk: improve bootstraping
982 2011-06-10 Simon J. Gerraty <sjg@bad.crufty.net>
984 * yacc.mk: handle the corner case of .c being removed
987 2011-06-08 Simon J. Gerraty <sjg@bad.crufty.net>
989 * yacc.mk: do .y.h and .y.c separately
991 2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net>
993 * install-mk (MK_VERSION): bump version to 20110606
994 * don't store SRC_DIRDEPS in Makefile.depend* by default
995 not everyone needs it.
997 2011-05-04 Simon J. Gerraty <sjg@bad.crufty.net>
999 * install-mk (MK_VERSION): bump version to 20110505
1000 first release including meta mode makefiles
1002 2011-05-02 Simon J. Gerraty <sjg@bad.crufty.net>
1004 * meta.stage.mk: add STAGE_AS_SETS and stage_as
1005 for things that need to be staged with different names.
1007 2011-05-01 Simon J. Gerraty <sjg@bad.crufty.net>
1009 * meta.stage.mk: add notion of STAGE_SETS
1010 so a makefile can stage to multiple dirs
1012 2011-04-03 Simon J. Gerraty <sjg@bad.crufty.net>
1014 * rst2htm.mk: convert rst to s5 (slides) or plain html depending
1017 2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net>
1019 * install-mk (MK_VERSION): bump version to 20110330
1021 2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net>
1023 * sys.mk (_DEBUG_MAKE_FLAGS): use indirection so that DEBUG_MAKE_FLAGS0
1024 can be used to debug level 0 only and DEBUG_MAKE_FLAGS for the rest.
1025 * sys.mk: re-define M_whence in terms of M_type.
1026 M_type is useful for checking if something is a builtin.
1028 2011-03-16 Simon J. Gerraty <sjg@bad.crufty.net>
1030 * meta.stage.mk: add stage_symlinks and leverage StageLinks for
1033 2011-03-10 Simon J. Gerraty <sjg@bad.crufty.net>
1035 * dirdeps.mk: correct value for _depdir_files depends on
1037 Add our copyright - just to make it clear we have frobbed this
1039 DEP_MACHINE needs to be set to MACHINE each time, if using only
1040 Makefile.depend (cf. Makefile.depend.${MACHINE})
1042 * meta.stage.mk: meta mode version of staging
1044 * init.mk, final.mk: include local.*.mk to simplify customization
1046 2011-03-03 Simon J. Gerraty <sjg@bad.crufty.net>
1048 * auto.obj.mk: just because we are doing mk destroy, we should
1049 still set .OBJDIR correctly if it exists.
1051 * install-mk (mksrc): do not exclude meta.sys.mk
1053 2011-03-01 Simon J. Gerraty <sjg@bad.crufty.net>
1055 * host-target.mk: set/export _HOST_ARCH etc separately,
1056 catch junk resulting from uname -p, so we can find sys/Linux.mk
1059 2011-02-18 Simon J. Gerraty <sjg@bad.crufty.net>
1061 * meta.sys.mk: throw an error if /dev/filemon is missing and we
1062 expected to be updating Makefile.depend*
1064 2011-02-14 Simon J. Gerraty <sjg@bad.crufty.net>
1066 * install-mk (MK_VERSION): bump version to 20110214
1067 * meta.subdir.mk: add support for -DBOOTSTRAP_DEPENDFILES
1069 2010-09-25 Simon J. Gerraty <sjg@bad.crufty.net>
1071 * meta.sys.mk: not valid for older bmake
1073 2010-09-24 Simon J. Gerraty <sjg@bad.crufty.net>
1075 * install-mk (MK_VERSION): bump version to 20100919
1076 include dirdeps.mk et al from Juniper Networks,
1077 for meta mode - requires filemon(9).
1078 * sys.mk, subdir.mk: Add hooks for meta mode.
1079 we do this as meta.sys.mk, meta.autodep.mk and meta.subdir.mk
1080 to make turning it on/off simple.
1082 2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net>
1084 * install-mk (MK_VERSION): bump version to 20100616
1085 * fix typo in sys.mk
1087 2010-06-12 Simon J. Gerraty <sjg@bad.crufty.net>
1089 * install-mk (MK_VERSION): bump version to 20100612
1090 * lib.mk: remove duplicate addition to SOBJS
1092 2010-06-10 Simon J. Gerraty <sjg@bad.crufty.net>
1094 * sys.mk: Add a means of selectively turning on debug flags.
1095 Eg. DEBUG_MAKE_FLAGS=-dv DEBUG_MAKE_DIRS="*lib/sjg"
1096 will act as if we did make -dv if .CURDIR ends in lib/sjg
1097 DEBUG_MAKE_SYS_DIRS does the same thing, but we set the flags at
1098 the start of sys.mk rather than the end.
1099 This only makes sense for leaf dirs, so we check that
1102 2010-06-09 Simon J. Gerraty <sjg@bad.crufty.net>
1104 * install-mk (MK_VERSION): bump version to 20100608
1105 * sys.mk: include sys.env.mk later so it can use M_ListToSkip et al.
1106 * examples/sys.clean-env.mk: require MAKE_VERIONS >= 20100606
1107 also make it easier for folk to tweak
1109 2010-06-08 Simon J. Gerraty <sjg@bad.crufty.net>
1111 * install-mk (MK_VERSION): bump version to 20100606
1112 do not install examples/*
1113 * FILES: add examples/sys.clean-env.mk
1114 * examples/sys.clean-env.mk: use .export-env to handle MAKEOBJDIR
1115 this requires bmake-20100606 or later to work.
1117 2010-05-13 Simon J. Gerraty <sjg@bad.crufty.net>
1119 * sys.mk (M_tA): better simulate the result of :tA if not available.
1121 2010-05-04 Simon J. Gerraty <sjg@bad.crufty.net>
1123 * sys.mk: canonicalize MAKE_VERSION
1124 old versions reported bmake-<src-date> build-<build-date>
1125 whereas we only care about <src-date>
1127 2010-04-25 Simon J. Gerraty <sjg@bad.crufty.net>
1129 * install-mk: just warn about FORCE_{BSD,SYS}_MK being ignored
1130 * lib.mk: we only build the shared lib if SHLIB_FULLVERSION
1133 2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net>
1135 * dpadd.mk: use LDADD_* if defined.
1137 2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net>
1139 * install-mk (MK_VERSION): bump version to 20100420
1140 * sys/NetBSD.mk: add MACHINE_CPU to keep netbsd makefiles happy
1141 * autoconf.mk allow AUTO_AUTOCONF
1143 2010-04-19 Simon J. Gerraty <sjg@bad.crufty.net>
1145 * obj.mk: add objwarn to keep freebsd makefiles happy
1146 * auto.obj.mk: ensure Mkdirs is available.
1147 * FILES: add auto.dep.mk - a simpler version of autodep.mk
1148 * dep.mk: auto.dep.mk does not do 'make depend' so ignore it if
1150 fix/simplify the tests for when to run mkdep.
1151 * auto.dep.mk: add some explanation of how/what we do.
1152 * autodep.mk: skip the .OPTIONAL frobbing of .depend
1153 bmake's FROM_DEPEND flag makes it redundant.
1155 2010-04-13 Simon J. Gerraty <sjg@bad.crufty.net>
1157 * install-mk (MK_VERSION): bump version to 20100404
1158 * subdir.mk: protect from multiple inclusion using _SUBDIRUSE.
1159 * obj.mk: protect from multiple inclusion even as bsd.obj.mk
1160 Also create a target _SUBDIRUSE so that we can be used without
1163 2010-04-12 Simon J. Gerraty <sjg@bad.crufty.net>
1165 * dep.mk: use <> when .including so can override.
1167 2010-01-11 Simon J. Gerraty <sjg@bad.crufty.net>
1169 * lib.mk (SHLIB_LINKS): ensure a string comparison.
1171 2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net>
1173 * install-mk (MK_VERSION): bump version to 20100102
1174 * own.mk: ensure PRINTOBJDIR works
1175 * autoconf.mk: pass on CONFIGURE_ARGS
1176 * init.mk: handle COPTS.${.IMPSRC:T} etc.
1177 * lib.mk: allow sys.mk to control SHLIB_FULLVERSION
1178 fix handling of symlinks for darwin
1179 * libnames.mk: add DSHLIBEXT for libs which only exist as shared.
1180 * man.mk: suppress chown when not root.
1181 * rst2htm.mk: allow srcs from multiple locations.
1182 * sys.mk: M_whence, stop after 1st line of output.
1183 * sys/Darwin.mk: Use .dylib for DSHLIBEXT and HOST_LIBEXT
1184 * sys/SunOS.mk: we need to export PATH
1186 2009-12-23 Simon J. Gerraty <sjg@void.crufty.net>
1188 * install-mk (MK_VERSION): bump version
1191 2009-12-17 Simon J. Gerraty <sjg@void.crufty.net>
1193 * sys.mk,libnames.mk add .-include <local.*>
1194 this allows local customization without the need to edit the
1197 2009-12-14 Simon J. Gerraty <sjg@void.crufty.net>
1199 * dpadd.mk (__dpadd_libdirs): order -L's to avoid picking up
1200 older versions already installed.
1202 2009-12-13 Simon J. Gerraty <sjg@void.crufty.net>
1204 * stage.mk (.stage-install): generalize lib.mk's .libinstall
1205 * rules.mk rules for generic Makefile.
1206 * inc.mk install for includes.
1208 2009-12-11 Simon J. Gerraty <sjg@void.crufty.net>
1210 * sys/NetBSD.mk (MAKE_VERSION): some of our *.mk want to check
1211 this, so provide it if using native make.
1213 2009-12-10 Simon J. Gerraty <sjg@void.crufty.net>
1215 * FILES: move all the platform *.sys.mk files to sys/*.mk
1216 * Rename Generic.sys.mk to sys.mk - we always want it.
1218 2009-11-17 Simon J. Gerraty <sjg@void.crufty.net>
1220 * install-mk (MK_VERSION): bump version
1221 * host-target.mk: only export the expensive stuff
1222 * Generic.sys.mk (sys_mk): for SunOS we need to look for
1223 ${HOST_OS}.${HOST_OSMAJOR} too!
1225 2009-11-07 Simon J. Gerraty <sjg@void.crufty.net>
1227 * install-mk (MK_VERSION): bump version
1228 * lib.mk: if sys.mk doesn't give us an lorder, don't use it.
1229 based on patch from Greg Olszewski.
1230 * Generic.sys.mk: if we have nothing to work with
1231 set LORDER etc only if we can find it.
1233 2009-09-08 Simon J. Gerraty <sjg@void.crufty.net>
1235 * install-mk (MK_VERSION): bump version
1236 * man.mk: cleanman: remove CLEANMAN if defined.
1238 2009-09-04 Simon J. Gerraty <sjg@void.crufty.net>
1240 * SunOS.5.sys.mk (CC): Use ?= like the other *sys.mk
1242 2009-07-17 Simon J. Gerraty <sjg@void.crufty.net>
1244 * install-mk (MK_VERSION): bump version
1248 2009-03-26 Simon J. Gerraty <sjg@void.crufty.net>
1250 * prog.mk,lib.mk: ensure test of USE_DPADD_MK doesn't fail.
1252 2008-11-11 Simon J. Gerraty <sjg@void.crufty.net>
1254 * install-mk (MK_VERSION): bump version
1255 man.mk: ensure we generate *.cat1 etc in .
1257 2008-07-16 Simon J. Gerraty <sjg@void.crufty.net>
1259 * install-mk (MK_VERSION): bump version
1262 2007-11-25 Simon J. Gerraty <sjg@void.crufty.net>
1264 * Generic.sys.mk: Allow os specific sys.mk to be in a
1265 subdir of ${.PARSEDIR}
1267 2007-11-22 Simon J. Gerraty <sjg@void.crufty.net>
1269 * install-mk (MK_VERSION): bump version
1271 * dpadd.mk introduce DPMAGIC_LIBS_*
1273 2007-04-30 Simon J. Gerraty <sjg@void.crufty.net>
1275 * install-mk (MK_VERSION): bump version
1277 * libs.mk, progs.mk, autodep.mk: allow for per lib/prog
1278 depend files and ensure clean is called for each lib/prog.
1280 2007-03-27 Simon J. Gerraty <sjg@void.crufty.net>
1282 * autodep.mk (.depend): delete lines that do not start with
1283 space and do not contain ':'
1285 2007-02-16 Simon J. Gerraty <sjg@void.crufty.net>
1287 * autodep.mk (.depend): gcc may wrap lines if pathnames are long
1288 so make sure the transform for .OPTIONAL copes.
1290 2007-02-03 Simon J. Gerraty <sjg@void.crufty.net>
1292 * install-mk (MK_VERSION): bump version
1294 * own.mk: make sure RM and LN are defined.
1296 * obj.mk: fix a typo, and objlink target.
1298 2006-12-30 Simon J. Gerraty <sjg@void.crufty.net>
1300 * install-mk (MK_VERSION): bump version
1301 * added libs.mk - analogous to progs.mk
1302 make both of them always inlcude {lib,prog}.mk
1304 2006-12-28 Simon J. Gerraty <sjg@void.crufty.net>
1306 * progs.mk: add a means of building multiple apps in one dir.
1308 2006-11-26 Simon J. Gerraty <sjg@void.crufty.net>
1310 * install-mk (MK_VERSION): bump version to 20061126
1312 * warnings.mk: detect invalid WARNINGS_SET
1314 * warnings.mk: use ${.TARGET:T:R}.o when looking for target
1317 * For .cc sources, turn off warnings that g++ vomits on.
1319 2006-11-08 Simon J. Gerraty <sjg@void.crufty.net>
1321 * own.mk: if __initialized__ target doesn't exist and we are
1322 FreeBSD we got here directly from sys.mk
1324 2006-11-06 Simon J. Gerraty <sjg@void.crufty.net>
1326 * install-mk (MK_VERSION): bump version to 20061106
1329 2006-03-18 Simon J. Gerraty <sjg@void.crufty.net>
1331 * install-mk (MK_VERSION): bump version to 20060318
1333 * autodep.mk: avoid := when modifying OBJS into __dependsrcs
1335 2006-03-02 Simon J. Gerraty <sjg@void.crufty.net>
1337 * install-mk (MK_VERSION): bump version to 20060302
1338 * autodep.mk: use -MF et al to help gcc+ccache DTRT.
1340 2006-03-01 Simon J. Gerraty <sjg@void.crufty.net>
1342 * install-mk (MK_VERSION): bump version to 20060301
1343 * autodep.mk (.depend):
1344 if MAKE_VERSION is newer than 20050530 we can make .END depend on
1345 .depend and make .depend depend on __depsrcs that exist.
1346 * dpadd.mk: add SRC_PATHADD
1348 2005-11-04 Simon J. Gerraty <sjg@void.crufty.net>
1350 * install-mk (MK_VERSION): bump version to 20051104
1351 * prog.mk: remove all the LIBC?= junk, use
1352 .-include libnames.mk instead (none by default).
1353 also if USE_DPADD_MK is set, include that.
1355 2005-10-09 Simon J. Gerraty <sjg@void.crufty.net>
1357 * install-mk (MK_VERSION): bump version to 20051001
1358 Add UnixWare.sys.mk from Klaus Heinz.
1360 2005-04-05 Simon J. Gerraty <sjg@void.crufty.net>
1362 * install-mk: always install *.sys.mk and if need be symlink one
1365 2005-03-22 Simon J. Gerraty <sjg@void.crufty.net>
1367 * subdir.mk, own.mk: use .MAKE rather than MAKE
1369 2004-02-15 Simon J. Gerraty <sjg@void.crufty.net>
1371 * own.mk: don't use NetBSD's _SRC_TOP_ it can
1372 cause confusion. Also don't take just 'mk' as a
1375 2004-02-14 Simon J. Gerraty <sjg@void.crufty.net>
1377 * warnings.mk: overhauled, now very powerful.
1379 2004-02-03 Simon J. Gerraty <sjg@void.crufty.net>
1381 * Generic.sys.mk: need to use ${.PARSEDIR} with exists().
1383 2004-02-01 Simon J. Gerraty <sjg@void.crufty.net>
1385 * install-mk (MK_VERSION): bump version to 20040201
1386 * extract HOST_TARGET stuff to host-target.mk so own.mk and
1387 Generic.sys.mk can share.
1388 * fix typo in autodep.mk _SUBDIRUSE not _SUBDIR.
1390 2003-09-30 Simon J. Gerraty <sjg@void.crufty.net>
1392 * install-mk (MK_VERSION): 20030930
1393 * rename generic.sys.mk to Generic.sys.mk
1394 so that it does not get installed (unless being used as sys.mk)
1395 * set OS and ROOT_GROUP for those that we know the value.
1396 for others (eg. Generic.sys.mk) wrap the != in an .ifndef so
1397 we don't do it again for each sub-make.
1399 2003-09-28 Simon J. Gerraty <sjg@void.crufty.net>
1401 * install-mk (MK_VERSION): 20030928
1402 Add some extra *.sys.mk from bootstrap-pkgsrc
1403 some of these likely still need work.
1404 Make everything default to root:wheel ownership,
1405 sys.mk can set ROOT_GROUP accordingly.
1407 2003-08-07 Simon J. Gerraty <sjg@void.crufty.net>
1409 * install-mk: if FORCE_BSD_MK={cp,ln} use the ones in SYS_MK_DIR
1410 not the portable ones.
1412 2003-07-31 Simon J. Gerraty <sjg@void.crufty.net>
1414 * install-mk: add ability to use cp -f when updating
1415 destination .mk files. Also now possible to play games with
1416 FORCE_SYS_MK=ln etc on *BSD machines to link /usr/share/mk/sys.mk
1417 into dest - not recommended unless you seriously want to.
1419 2003-07-28 Simon J. Gerraty <sjg@void.crufty.net>
1421 * own.mk (IMPFLAGS): add support for COPTS.${IMPSRC:T} etc
1422 for semi-compatability with NetBSD.
1424 2003-07-23 Simon J. Gerraty <sjg@void.crufty.net>
1426 * install-mk: add a version indicator
1428 2003-07-22 Simon J. Gerraty <sjg@void.crufty.net>
1430 * prog.mk: don't try and use ${LIBCRT0} if its /dev/null
1432 * install-mk: Allow FORCE_SYS_MK to come from env