1*8d5c8e21SSimon J. Gerraty2024-06-22 Simon J Gerraty <sjg@beast.crufty.net> 2*8d5c8e21SSimon J. Gerraty 3*8d5c8e21SSimon J. Gerraty * install-mk (MK_VERSION): 20240616 4*8d5c8e21SSimon J. Gerraty 5*8d5c8e21SSimon J. Gerraty * dirdeps.mk: apply DEP_DIRDEPS_BUILD_DIR_FILTER after we have 6*8d5c8e21SSimon J. Gerraty computed build dirs, since some filters cannot be easily expressed via 7*8d5c8e21SSimon J. Gerraty DEP_DIRDEPS_FILTER. 8*8d5c8e21SSimon J. Gerraty 9*8d5c8e21SSimon J. Gerraty2024-05-31 Simon J Gerraty <sjg@beast.crufty.net> 10*8d5c8e21SSimon J. Gerraty 11*8d5c8e21SSimon J. Gerraty * dirdeps.mk: move reset of DIRDEPS_EXPORT_VARS 12*8d5c8e21SSimon J. Gerraty until after we a finished with it if building a cache. 13*8d5c8e21SSimon J. Gerraty 14c9f4001fSSimon J. Gerraty2024-05-04 Simon J Gerraty <sjg@beast.crufty.net> 15c9f4001fSSimon J. Gerraty 16c9f4001fSSimon J. Gerraty * install-mk (MK_VERSION): 20240504 17c9f4001fSSimon J. Gerraty 18c9f4001fSSimon J. Gerraty * dirdeps.mk: allow BUILD_DIRDEPS_OVERRIDES to pass overrides to 19c9f4001fSSimon J. Gerraty sub-make building DIRDEPS_CACHE. 20c9f4001fSSimon J. Gerraty 21548bfc56SSimon J. Gerraty2024-04-24 Simon J Gerraty <sjg@beast.crufty.net> 22548bfc56SSimon J. Gerraty 23548bfc56SSimon J. Gerraty * meta.autodep.mk: do not override start_utc 24548bfc56SSimon J. Gerraty 25548bfc56SSimon J. Gerraty2024-04-18 Simon J Gerraty <sjg@beast.crufty.net> 26548bfc56SSimon J. Gerraty 27548bfc56SSimon J. Gerraty * sys.dirdeps.mk: set defaults for DEP_* at level 0 too. 28548bfc56SSimon J. Gerraty These help when first include of Makefile.depend happens in a leaf 29548bfc56SSimon J. Gerraty dir. 30548bfc56SSimon J. Gerraty 31548bfc56SSimon J. Gerraty * install-mk (MK_VERSION): 20240414 32548bfc56SSimon J. Gerraty 33548bfc56SSimon J. Gerraty2024-04-09 Simon J Gerraty <sjg@beast.crufty.net> 34548bfc56SSimon J. Gerraty 35548bfc56SSimon J. Gerraty * install-mk (MK_VERSION): 20240408 36548bfc56SSimon J. Gerraty 37548bfc56SSimon J. Gerraty * init.mk: allow for _ as well as . to join V 38548bfc56SSimon J. Gerraty and Q from QUALIFIED_VAR_LIST and VAR_QUALIFIER_LIST. 39548bfc56SSimon J. Gerraty 40548bfc56SSimon J. Gerraty * progs.mk: avoid overlap between PROG_VARS and 41548bfc56SSimon J. Gerraty init.mk's QUALIFIED_VAR_LIST since PROG would also 42548bfc56SSimon J. Gerraty match its VAR_QUALIFIER_LIST, 43548bfc56SSimon J. Gerraty libs.mk does not have the same issue. 44548bfc56SSimon J. Gerraty 45548bfc56SSimon J. Gerraty * subdir.mk: _SUBDIRUSE for realinstall should run install 46548bfc56SSimon J. Gerraty remove include of ${.CURDIR}/Makefile.inc that can be done via 47548bfc56SSimon J. Gerraty local.subdir.mk where needed 48548bfc56SSimon J. Gerraty 49548bfc56SSimon J. Gerraty * own.mk: do not conflict with man.mk 50548bfc56SSimon J. Gerraty 51548bfc56SSimon J. Gerraty2024-03-19 Simon J Gerraty <sjg@beast.crufty.net> 52548bfc56SSimon J. Gerraty 53548bfc56SSimon J. Gerraty * install-mk (MK_VERSION): 20240314 54548bfc56SSimon J. Gerraty 55548bfc56SSimon J. Gerraty * add sys/Cygwin.mk from Christian Franke 56548bfc56SSimon J. Gerraty 57c59c3bf3SSimon J. Gerraty2024-03-09 Simon J Gerraty <sjg@beast.crufty.net> 58c59c3bf3SSimon J. Gerraty 59c59c3bf3SSimon J. Gerraty * install-mk (MK_VERSION): 20240309 60c59c3bf3SSimon J. Gerraty 61c59c3bf3SSimon J. Gerraty * meta.sys.mk: _metaError: if .ERROR_EXIT == 6, we do not 62c59c3bf3SSimon J. Gerraty want to save the .ERROR_META_FILE 63c59c3bf3SSimon J. Gerraty 64c59c3bf3SSimon J. Gerraty2024-02-20 Simon J Gerraty <sjg@beast.crufty.net> 65c59c3bf3SSimon J. Gerraty 66c59c3bf3SSimon J. Gerraty * install-mk (MK_VERSION): 20240220 67c59c3bf3SSimon J. Gerraty 68c59c3bf3SSimon J. Gerraty * sys.dirdeps.mk, dirdeps-targets.mk, init.mk: 69c59c3bf3SSimon J. Gerraty do not set .MAIN: dirdeps in sys.dirdeps.mk 70c59c3bf3SSimon J. Gerraty dirdeps-targets.mk will do that for top-level builds 71c59c3bf3SSimon J. Gerraty and init.mk will do it for others. 72c59c3bf3SSimon J. Gerraty This allows a Makefile which has no need of 'dirdeps' to 73c59c3bf3SSimon J. Gerraty set .MAIN for itself and "just work". 74c59c3bf3SSimon J. Gerraty 75c59c3bf3SSimon J. Gerraty2024-02-18 Simon J Gerraty <sjg@beast.crufty.net> 76c59c3bf3SSimon J. Gerraty 77c59c3bf3SSimon J. Gerraty * bsd.*.mk: for makefiles that get a bsd. symlink, 78c59c3bf3SSimon J. Gerraty use _this in multiple inclusion tags since .PARSEFILE will not 79c59c3bf3SSimon J. Gerraty DTRT when such a makefile is included directly by Makefile and 80c59c3bf3SSimon J. Gerraty automatically (without bsd. prefix). 81c59c3bf3SSimon J. Gerraty Since we cannot guarantee that our sys.mk will be used, we provide 82c59c3bf3SSimon J. Gerraty a default _this in each makefile that gets a bsd. prefix such that 83c59c3bf3SSimon J. Gerraty the value is the same regardless of bsd. prefix. 84c59c3bf3SSimon J. Gerraty 85c59c3bf3SSimon J. Gerraty * subdir.mk: drop the !target guard on $SUBDIR_TARGETS 86c59c3bf3SSimon J. Gerraty 87c59c3bf3SSimon J. Gerraty2024-02-12 Simon J Gerraty <sjg@beast.crufty.net> 88c59c3bf3SSimon J. Gerraty 89c59c3bf3SSimon J. Gerraty * install-mk (MK_VERSION): 20240212 90c59c3bf3SSimon J. Gerraty 91c59c3bf3SSimon J. Gerraty * SPDX-License-Identifier: BSD-2-Clause 92c59c3bf3SSimon J. Gerraty Add SPDX-License-Identifier to inidicate that I consider 93c59c3bf3SSimon J. Gerraty my copyright on any of these makefiles equivalent to BSD-2-Clause 94c59c3bf3SSimon J. Gerraty 95c59c3bf3SSimon J. Gerraty * autoconf.mk: allow for configure.ac as currently recommended 96c59c3bf3SSimon J. Gerraty 97c59c3bf3SSimon J. Gerraty * subdir.mk: support @auto 98c59c3bf3SSimon J. Gerraty which is replaced with each subdir that 99c59c3bf3SSimon J. Gerraty has a [Mm]akefile. 100c59c3bf3SSimon J. Gerraty 101c59c3bf3SSimon J. Gerraty * subdir.mk: include local.subdir.mk if it exists. 102c59c3bf3SSimon J. Gerraty 103c59c3bf3SSimon J. Gerraty * subdir.mk: rework to handle .WAIT 104c59c3bf3SSimon J. Gerraty 105c59c3bf3SSimon J. Gerraty2024-02-11 Simon J Gerraty <sjg@beast.crufty.net> 106c59c3bf3SSimon J. Gerraty 107c59c3bf3SSimon J. Gerraty * subdir.mk: _SUBDIRUSE report the target we are entering subdirs for. 108c59c3bf3SSimon J. Gerraty 109c59c3bf3SSimon J. Gerraty2024-02-10 Simon J Gerraty <sjg@beast.crufty.net> 110c59c3bf3SSimon J. Gerraty 111c59c3bf3SSimon J. Gerraty * prog.mk: treat empty SRCS the same as undefined 112c59c3bf3SSimon J. Gerraty 113c59c3bf3SSimon J. Gerraty2024-02-02 Simon J Gerraty <sjg@beast.crufty.net> 114c59c3bf3SSimon J. Gerraty 115c59c3bf3SSimon J. Gerraty * Avoid undefined errors in lint (-dL) mode 116c59c3bf3SSimon J. Gerraty 117c59c3bf3SSimon J. Gerraty * man.mk (CMT2DOC_FLAGS): note that -mm does mdoc(7) 118c59c3bf3SSimon J. Gerraty 119c59c3bf3SSimon J. Gerraty2024-01-28 Simon J Gerraty <sjg@beast.crufty.net> 120c59c3bf3SSimon J. Gerraty 121c59c3bf3SSimon J. Gerraty * install-mk (MK_VERSION): 20240128 122c59c3bf3SSimon J. Gerraty 123c59c3bf3SSimon J. Gerraty * FILES: add ccm.dep.mk for C++ modules 124c59c3bf3SSimon J. Gerraty add suffixes.mk for common location for generic SUFFIX rules. 125c59c3bf3SSimon J. Gerraty 126c59c3bf3SSimon J. Gerraty * auto.dep.mk autodep.mk meta.autodep.mk: include ccm.dep.mk 127c59c3bf3SSimon J. Gerraty replace OBJ_EXTENSIONS with OBJ_SUFFIXES 128c59c3bf3SSimon J. Gerraty 129c59c3bf3SSimon J. Gerraty * autodep.mk: leverage CXX_SUFFIXES for __depsrcs 130c59c3bf3SSimon J. Gerraty and update style (spaces around = etc) 131c59c3bf3SSimon J. Gerraty 132c59c3bf3SSimon J. Gerraty * init.mk: add OBJS_SRCS_FILTER to filter SRCS when 133c59c3bf3SSimon J. Gerraty setting OBJS 134c59c3bf3SSimon J. Gerraty 135c59c3bf3SSimon J. Gerraty * meta2deps.py: handle multiple ./ embedded in path better. 136c59c3bf3SSimon J. Gerraty 137d5e0a182SSimon J. Gerraty2024-01-05 Simon J Gerraty <sjg@beast.crufty.net> 138d5e0a182SSimon J. Gerraty 139d5e0a182SSimon J. Gerraty * install-mk (MK_VERSION): 20240105 140d5e0a182SSimon J. Gerraty * dirdeps.mk: for MAKE_VERSION 20240105 we do not have the same 141d5e0a182SSimon J. Gerraty limits on command line length, so skip export of lists to env. 142d5e0a182SSimon J. Gerraty 143d5e0a182SSimon J. Gerraty2023-12-24 Simon J Gerraty <sjg@beast.crufty.net> 144d5e0a182SSimon J. Gerraty 145d5e0a182SSimon J. Gerraty * man.mk: add logic for staging man pages 146d5e0a182SSimon J. Gerraty 147d5e0a182SSimon J. Gerraty2023-11-28 Simon J Gerraty <sjg@beast.crufty.net> 148d5e0a182SSimon J. Gerraty 149d5e0a182SSimon J. Gerraty * jobs.mk: avoid C suffix in JOB_MAX_C if factor is floating 150d5e0a182SSimon J. Gerraty point. This keeps JOB_MAX numeric incase another makefile does 151d5e0a182SSimon J. Gerraty comparisons. 152d5e0a182SSimon J. Gerraty 153d5e0a182SSimon J. Gerraty2023-11-04 Simon J Gerraty <sjg@beast.crufty.net> 154d5e0a182SSimon J. Gerraty 155d5e0a182SSimon J. Gerraty * dpadd.mk: add support for DPLIBS_QUALIFIER_LIST 156d5e0a182SSimon J. Gerraty 157d5e0a182SSimon J. Gerraty * gendirdeps.mk: if META_XTRAS is passed to us, add to META_FILES 158d5e0a182SSimon J. Gerraty 159d5e0a182SSimon J. Gerraty2023-10-03 Simon J Gerraty <sjg@beast.crufty.net> 160d5e0a182SSimon J. Gerraty 161d5e0a182SSimon J. Gerraty * compiler.mk (COMPILER_VERSION): clang at least is into 162d5e0a182SSimon J. Gerraty double digit major versions. 163d5e0a182SSimon J. Gerraty 164d5e0a182SSimon J. Gerraty2023-10-02 Simon J Gerraty <sjg@beast.crufty.net> 165d5e0a182SSimon J. Gerraty 166d5e0a182SSimon J. Gerraty * install-mk (MK_VERSION): 20231001 167d5e0a182SSimon J. Gerraty 168d5e0a182SSimon J. Gerraty * set _CCLINK in init.mk so lib.mk can use it for default SHLIB_LD 169d5e0a182SSimon J. Gerraty 170d5e0a182SSimon J. Gerraty * lib.mk (cleanlib): use LD_solink so we remove all the right files. 171d5e0a182SSimon J. Gerraty Use -Wl for -soname since we now default to linking with CC 172d5e0a182SSimon J. Gerraty We should not need SHLIB_LDSTARTFILE or SHLIB_LDENDFILE when linking 173d5e0a182SSimon J. Gerraty with CC. 174d5e0a182SSimon J. Gerraty 175d5e0a182SSimon J. Gerraty2023-09-24 Simon J Gerraty <sjg@beast.crufty.net> 176d5e0a182SSimon J. Gerraty 177d5e0a182SSimon J. Gerraty * init.mk (QUALIFIED_VAR_LIST): Add SRCS 178d5e0a182SSimon J. Gerraty 17998875883SSimon J. Gerraty2023-09-09 Simon J Gerraty <sjg@beast.crufty.net> 18098875883SSimon J. Gerraty 18198875883SSimon J. Gerraty * jobs.mk (JOB_MAX): use -jC if we can 18298875883SSimon J. Gerraty we actually use JOB_MAX_C which defaults to 1.33C 18398875883SSimon J. Gerraty 18498875883SSimon J. Gerraty2023-08-18 Simon J Gerraty <sjg@beast.crufty.net> 18598875883SSimon J. Gerraty 18698875883SSimon J. Gerraty * now_utc: %s only works with :localtime 18798875883SSimon J. Gerraty 18898875883SSimon J. Gerraty2023-07-14 Simon J Gerraty <sjg@beast.crufty.net> 18998875883SSimon J. Gerraty 19098875883SSimon J. Gerraty * install-sh: ignore -c as claimed and only insist on 19198875883SSimon J. Gerraty a directory for destination when more than one file to copy. 19298875883SSimon J. Gerraty 19398875883SSimon J. Gerraty * sys.mk: when looking for SYS_OS_MK try ${.MAKE.OS} and 19498875883SSimon J. Gerraty ${.MAKE.OS:S,64,,} early (so we find sys/IRIX.mk for IRIX64) 19598875883SSimon J. Gerraty 19698875883SSimon J. Gerraty2023-07-13 Simon J Gerraty <sjg@beast.crufty.net> 19798875883SSimon J. Gerraty 19898875883SSimon J. Gerraty * install-mk (MK_VERSION): 20230711 19998875883SSimon J. Gerraty 20098875883SSimon J. Gerraty * sys.mk: set SYS_MK and INSTALL_SH for systems with incompatible 20198875883SSimon J. Gerraty install(1) 20298875883SSimon J. Gerraty 20398875883SSimon J. Gerraty * sys/IRIX.mk: when setting ROOT_GROUP only match the first :0: 20498875883SSimon J. Gerraty set INSTALL to install-sh rather than pathname that may not exist 20598875883SSimon J. Gerraty (yet). 20698875883SSimon J. Gerraty 20798875883SSimon J. Gerraty2023-07-07 Simon J Gerraty <sjg@beast.crufty.net> 20898875883SSimon J. Gerraty 20998875883SSimon J. Gerraty * dirdeps.mk: pass DIRDEP_TARGETS to DIRDEP_MAKE 21098875883SSimon J. Gerraty normally this is empty - for the default target, but there are 21198875883SSimon J. Gerraty use-cases where we might set it to something else. 21298875883SSimon J. Gerraty 21398875883SSimon J. Gerraty2023-07-04 Simon J Gerraty <sjg@beast.crufty.net> 21498875883SSimon J. Gerraty 21598875883SSimon J. Gerraty * install-mk (MK_VERSION): 20230704 21698875883SSimon J. Gerraty 21798875883SSimon J. Gerraty * dirdeps.mk: apply DEBUG_DIRDEPS_LIST_FILTER to lists we output 21898875883SSimon J. Gerraty when DEBUG_DIRDEPS is in effect. 21998875883SSimon J. Gerraty Eg. DEBUG_DIRDEPS_LIST_FILTER=ts\n 22098875883SSimon J. Gerraty can greatly improve readability. 22198875883SSimon J. Gerraty 222148ee845SSimon J. Gerraty2023-05-25 Simon J Gerraty <sjg@beast.crufty.net> 223148ee845SSimon J. Gerraty 224148ee845SSimon J. Gerraty * meta.autodep.mk (beforegendirdeps): allow tasks to be done 225148ee845SSimon J. Gerraty at END but before gendirdeps 226148ee845SSimon J. Gerraty 227148ee845SSimon J. Gerraty2023-05-22 Simon J Gerraty <sjg@beast.crufty.net> 228148ee845SSimon J. Gerraty 229148ee845SSimon J. Gerraty * install-mk (MK_VERSION): 20230522 230148ee845SSimon J. Gerraty 231148ee845SSimon J. Gerraty * host-target.mk: deal with garbage from uname -m on 232148ee845SSimon J. Gerraty Darwin ppc, also NetBSD appears to use x86_64 for MACHINE_ARCH 233148ee845SSimon J. Gerraty these days so just leave it be. 234148ee845SSimon J. Gerraty For Darwin arm and i386 use _HOST_MACHINE for _HOST_ARCH so we get 235148ee845SSimon J. Gerraty arm64 and x86_64 in HOST_TARGET. 236148ee845SSimon J. Gerraty 237148ee845SSimon J. Gerraty2023-05-15 Simon J Gerraty <sjg@beast.crufty.net> 238148ee845SSimon J. Gerraty 239148ee845SSimon J. Gerraty * sys.vars.mk: M_mtime use :mtime or 'stat -f %m' for older 240148ee845SSimon J. Gerraty versions of bmake. 241148ee845SSimon J. Gerraty 242148ee845SSimon J. Gerraty * dirdeps.mk (TARGET_SPEC_VARS.host): 243148ee845SSimon J. Gerraty While *most* projects need only DEP_MACHINE for host, 244148ee845SSimon J. Gerraty there is always an exception. So we allow for 245148ee845SSimon J. Gerraty TARGET_SPEC_VARS.host to be a subset of TARGET_SPEC_VARS. 246148ee845SSimon J. Gerraty The default will *just work* for most projects. 247148ee845SSimon J. Gerraty We set DEP_TARGET_SPEC_VARS and hence DEP_TARGET_SPEC 248148ee845SSimon J. Gerraty based on DEP_MACHINE. 249148ee845SSimon J. Gerraty Allow for M_dep_qual_fixes.host to be different too 250148ee845SSimon J. Gerraty and take care to apply the right set. 251148ee845SSimon J. Gerraty 252148ee845SSimon J. Gerraty2023-05-14 Simon J Gerraty <sjg@beast.crufty.net> 253148ee845SSimon J. Gerraty 254148ee845SSimon J. Gerraty * sys.dirdeps.mk: we *do* want to override OBJTOP 255148ee845SSimon J. Gerraty and if MAKEOBJDIR was not in env as we want it; 256148ee845SSimon J. Gerraty put it there - carefully. 257148ee845SSimon J. Gerraty Ensure OBJROOT ends in / or - (/ preferred) 258148ee845SSimon J. Gerraty Add more comments to explain what/why. 259148ee845SSimon J. Gerraty 260148ee845SSimon J. Gerraty2023-05-13 Simon J Gerraty <sjg@beast.crufty.net> 261148ee845SSimon J. Gerraty 262148ee845SSimon J. Gerraty * install-mk (MK_VERSION): 20230512 263148ee845SSimon J. Gerraty 264148ee845SSimon J. Gerraty * dirdeps.mk: take care not to qualify "host" dirdeps 265148ee845SSimon J. Gerraty 266148ee845SSimon J. Gerraty * sys.dirdeps.mk (OBJTOP): must use ?= 267148ee845SSimon J. Gerraty 268c1d01b5fSSimon J. Gerraty2023-05-10 Simon J Gerraty <sjg@beast.crufty.net> 269c1d01b5fSSimon J. Gerraty 270c1d01b5fSSimon J. Gerraty * meta.autodep.mk: if LOCAL_DEPENDS_GUARD is "no" 271c1d01b5fSSimon J. Gerraty suppress processing of .depend 272c1d01b5fSSimon J. Gerraty 273c1d01b5fSSimon J. Gerraty2023-05-09 Simon J Gerraty <sjg@beast.crufty.net> 274c1d01b5fSSimon J. Gerraty 275c1d01b5fSSimon J. Gerraty * dirdeps.mk: do not add _CURDIR to DIRDEPS for SRCTOP 276c1d01b5fSSimon J. Gerraty 277c1d01b5fSSimon J. Gerraty * meta.sys.mk sys.dirdeps.mk: 278c1d01b5fSSimon J. Gerraty originally DIRDEPS_BUILD and META_MODE were the same thing, 279c1d01b5fSSimon J. Gerraty but META_MODE is useful by itself. 280c1d01b5fSSimon J. Gerraty Move things from meta.sys.mk which actually pertain to 281c1d01b5fSSimon J. Gerraty DIRDEPS_BUILD to sys.dirdeps.mk 282c1d01b5fSSimon J. Gerraty 283c1d01b5fSSimon J. Gerraty2023-05-04 Simon J Gerraty <sjg@beast.crufty.net> 284c1d01b5fSSimon J. Gerraty 285c1d01b5fSSimon J. Gerraty * install-mk (MK_VERSION): 20230504 May the Forth be with you 286c1d01b5fSSimon J. Gerraty 287c1d01b5fSSimon J. Gerraty * dirdeps.mk: as with meta.sys.mk we treat "host" as special. 288c1d01b5fSSimon J. Gerraty DEP_TARGET_SPEC is just ${DEP_MACHINE} 289c1d01b5fSSimon J. Gerraty 290c1d01b5fSSimon J. Gerraty * meta.sys.mk: ensure DEP_* for TARGET_SPEC_VARS are set at 291c1d01b5fSSimon J. Gerraty level > 0 since these are often refered to in Makefile.depend* 292c1d01b5fSSimon J. Gerraty 293c1d01b5fSSimon J. Gerraty2023-04-26 Simon J Gerraty <sjg@beast.crufty.net> 294c1d01b5fSSimon J. Gerraty 295c1d01b5fSSimon J. Gerraty * jobs.mk: report ${.TARGET} ${JOB_ARGS} ${JOB_LOG} and 296c1d01b5fSSimon J. Gerraty anything in ${JOB_LOG_START} 297c1d01b5fSSimon J. Gerraty 298c1d01b5fSSimon J. Gerraty * jobs.mk: look for newlog.sh in ${.SYSPATH:U${.PARSEDIR}} 299c1d01b5fSSimon J. Gerraty or a scripts subdir before searching $PATH. 300c1d01b5fSSimon J. Gerraty 301c1d01b5fSSimon J. Gerraty * FILES: include newlog.sh for jobs.mk 302c1d01b5fSSimon J. Gerraty 3038c973ee2SSimon J. Gerraty2023-04-20 Simon J Gerraty <sjg@beast.crufty.net> 3048c973ee2SSimon J. Gerraty 3058c973ee2SSimon J. Gerraty * install-mk (MK_VERSION): 20230420 3068c973ee2SSimon J. Gerraty 3078c973ee2SSimon J. Gerraty * lib.mk: include LDFLAGS and LDADD when linking shared libs 3088c973ee2SSimon J. Gerraty 3098c973ee2SSimon J. Gerraty * gendirdeps.mk: document setting GENDIRDEPS_FILTER_VARS etc 3108c973ee2SSimon J. Gerraty via local.meta.sys.mk rather than local.gendirdeps.mk 3118c973ee2SSimon J. Gerraty so DEP_* variables can be set at level 1+ to avoid syntax errors 3128c973ee2SSimon J. Gerraty when used in conditionals in manually maintained Makefile.depend 3138c973ee2SSimon J. Gerraty files. 3148c973ee2SSimon J. Gerraty 3158c973ee2SSimon J. Gerraty * dirdeps.mk: ensure M_dep_qual_fixes is applied to all _machines 3168c973ee2SSimon J. Gerraty 3178c973ee2SSimon J. Gerraty2023-04-18 Simon J Gerraty <sjg@beast.crufty.net> 3188c973ee2SSimon J. Gerraty 3198c973ee2SSimon J. Gerraty * dirdeps.mk: check we were not included by 3208c973ee2SSimon J. Gerraty Makefile.depend.options as the result is bad. 3218c973ee2SSimon J. Gerraty 3228c973ee2SSimon J. Gerraty2023-04-14 Simon J Gerraty <sjg@beast.crufty.net> 3238c973ee2SSimon J. Gerraty 3248c973ee2SSimon J. Gerraty * install-mk (MK_VERSION): 20230414 3258c973ee2SSimon J. Gerraty 3268c973ee2SSimon J. Gerraty * meta.sys.mk: since we have :range we can put the logic for 3278c973ee2SSimon J. Gerraty processing TARGET_SPEC from env here. 3288c973ee2SSimon J. Gerraty 3298c973ee2SSimon J. Gerraty * dirdeps.mk: reset DIRDEPS and DEP_RELDIR before including 3308c973ee2SSimon J. Gerraty local.dirdeps-missing.mk, also improve debug output. 3318c973ee2SSimon J. Gerraty 3328c973ee2SSimon J. Gerraty * dirdeps.mk: to allow make -f dirdeps.mk include.$TARGET_SPEC 3338c973ee2SSimon J. Gerraty we need to use :M*[/.]* same as for when actually setting DIRDEPS 3348c973ee2SSimon J. Gerraty from the targets on command line. 3358c973ee2SSimon J. Gerraty 3368c973ee2SSimon J. Gerraty2023-04-12 Simon J Gerraty <sjg@beast.crufty.net> 3378c973ee2SSimon J. Gerraty 3388c973ee2SSimon J. Gerraty * Add jobs.mk 3398c973ee2SSimon J. Gerraty 3408c973ee2SSimon J. Gerraty2023-03-21 Simon J Gerraty <sjg@beast.crufty.net> 3418c973ee2SSimon J. Gerraty 3428c973ee2SSimon J. Gerraty * install-mk (MK_VERSION): 20230321 3438c973ee2SSimon J. Gerraty 3448c973ee2SSimon J. Gerraty * meta.stage.mk: allow STAGE_SHLIB_LINKS_FILTER to filter 3458c973ee2SSimon J. Gerraty STAGE_LIBS for SHLIB_LINKS. 3468c973ee2SSimon J. Gerraty 3478c973ee2SSimon J. Gerraty * autoconf.mk: add .WAIT after config.status 3488c973ee2SSimon J. Gerraty 3498c973ee2SSimon J. Gerraty2023-02-17 Simon J Gerraty <sjg@beast.crufty.net> 3508c973ee2SSimon J. Gerraty 3518c973ee2SSimon J. Gerraty * sys.vars.mk: add M_Index to report the index of a word in a list. 3528c973ee2SSimon J. Gerraty 3538c973ee2SSimon J. Gerraty2023-02-15 Simon J Gerraty <sjg@beast.crufty.net> 3548c973ee2SSimon J. Gerraty 3558c973ee2SSimon J. Gerraty * install-mk (MK_VERSION): 20230215 3568c973ee2SSimon J. Gerraty 3578c973ee2SSimon J. Gerraty * warnings.mk: allow better control of -Werror 3588c973ee2SSimon J. Gerraty allow -Wno-error or similar to be added if 3598c973ee2SSimon J. Gerraty WARNINGS_SET < WERROR_SET 3608c973ee2SSimon J. Gerraty account for COMPILER_TYPE 3618c973ee2SSimon J. Gerraty 362dc1b8c9aSSimon J. Gerraty2023-01-29 Simon J Gerraty <sjg@beast.crufty.net> 363dc1b8c9aSSimon J. Gerraty 364dc1b8c9aSSimon J. Gerraty * autoconf.mk: hook config.status to beforebuild. 365dc1b8c9aSSimon J. Gerraty 366dc1b8c9aSSimon J. Gerraty * whats.mk: what*.c is NOTMAIN 367dc1b8c9aSSimon J. Gerraty 368dc1b8c9aSSimon J. Gerraty2023-01-27 Simon J Gerraty <sjg@beast.crufty.net> 369dc1b8c9aSSimon J. Gerraty 370dc1b8c9aSSimon J. Gerraty * install-mk (MK_VERSION): 20230127 371dc1b8c9aSSimon J. Gerraty control umask so directories are created with suitable mode. 372dc1b8c9aSSimon J. Gerraty 3734fde40d9SSimon J. Gerraty2023-01-20 Simon J Gerraty <sjg@beast.crufty.net> 3744fde40d9SSimon J. Gerraty 3754fde40d9SSimon J. Gerraty * install-mk (MK_VERSION): 20230120 3764fde40d9SSimon J. Gerraty 3774fde40d9SSimon J. Gerraty * sys.vars.mk: add M_On and M_Onr also cleanup to be more 3784fde40d9SSimon J. Gerraty consistent wrt testing MAKE_VERSION 3794fde40d9SSimon J. Gerraty 3804fde40d9SSimon J. Gerraty2023-01-12 Simon J Gerraty <sjg@beast.crufty.net> 3814fde40d9SSimon J. Gerraty 3824fde40d9SSimon J. Gerraty * install-mk (MK_VERSION): 20230112 3834fde40d9SSimon J. Gerraty 3844fde40d9SSimon J. Gerraty * meta2deps.{py,sh}: assert if filemon data is truncated 3854fde40d9SSimon J. Gerraty we should see the '# Bye bye' record - assert if we do not. 3864fde40d9SSimon J. Gerraty 3874fde40d9SSimon J. Gerraty2022-09-09 Simon J Gerraty <sjg@beast.crufty.net> 3884fde40d9SSimon J. Gerraty 3894fde40d9SSimon J. Gerraty * install-mk (MK_VERSION): 20220909 3904fde40d9SSimon J. Gerraty 3914fde40d9SSimon J. Gerraty * sys/Linux.mk set EGREP to grep -E to avoid deprecation warnings 3924fde40d9SSimon J. Gerraty 3934fde40d9SSimon J. Gerraty2022-09-06 Simon J Gerraty <sjg@beast.crufty.net> 3944fde40d9SSimon J. Gerraty 3954fde40d9SSimon J. Gerraty * dirdeps-options.mk: explain the need to use 3964fde40d9SSimon J. Gerraty ${DEP_${TARGET_SPEC_VAR}:U${TARGET_SPEC_VAR}} when refering to 3974fde40d9SSimon J. Gerraty ${TARGET_SPEC_VAR} 3984fde40d9SSimon J. Gerraty 3994fde40d9SSimon J. Gerraty2022-09-03 Simon J Gerraty <sjg@beast.crufty.net> 4004fde40d9SSimon J. Gerraty 4014fde40d9SSimon J. Gerraty * install-mk (MK_VERSION): 20220903 4024fde40d9SSimon J. Gerraty 4034fde40d9SSimon J. Gerraty * M_cmpv handle more than 3 dots and clear leading 0's 4044fde40d9SSimon J. Gerraty 405954401e6SSimon J. Gerraty2022-07-20 Simon J Gerraty <sjg@beast.crufty.net> 406954401e6SSimon J. Gerraty 407954401e6SSimon J. Gerraty * install-mk (MK_VERSION): 20220720 408954401e6SSimon J. Gerraty 409954401e6SSimon J. Gerraty * prog.mk: handle PROG_CXX for more than just NetBSD 410954401e6SSimon J. Gerraty 411954401e6SSimon J. Gerraty2022-06-20 Simon J Gerraty <sjg@beast.crufty.net> 412954401e6SSimon J. Gerraty 413954401e6SSimon J. Gerraty * install-mk (MK_VERSION): 20220620 414954401e6SSimon J. Gerraty 415954401e6SSimon J. Gerraty * yacc.mk: when we have *.y in SRCS used explicit rules and .ORDER 416954401e6SSimon J. Gerraty rather than just suffix rules 417954401e6SSimon J. Gerraty 418954401e6SSimon J. Gerraty2022-04-23 Simon J Gerraty <sjg@beast.crufty.net> 419954401e6SSimon J. Gerraty 420954401e6SSimon J. Gerraty * install-mk (MK_VERSION): 20220422 421954401e6SSimon J. Gerraty 422954401e6SSimon J. Gerraty * gendirdeps.mk: If LOCAL_DEPENDS_GUARD is set to "no" 423954401e6SSimon J. Gerraty do not capture any local depends in Makefile.depend 424954401e6SSimon J. Gerraty 4251d3f2ddcSSimon J. Gerraty2022-03-25 Simon J Gerraty <sjg@beast.crufty.net> 4261d3f2ddcSSimon J. Gerraty 4271d3f2ddcSSimon J. Gerraty * install-mk (MK_VERSION): 20220323 4281d3f2ddcSSimon J. Gerraty * posix.mk: default rules for .POSIX: 4291d3f2ddcSSimon J. Gerraty 4301d3f2ddcSSimon J. Gerraty2022-03-17 Simon J Gerraty <sjg@beast.crufty.net> 4311d3f2ddcSSimon J. Gerraty 4321d3f2ddcSSimon J. Gerraty * sys/*.mk: remove l from ARFLAGS 4331d3f2ddcSSimon J. Gerraty 4341d3f2ddcSSimon J. Gerraty2022-03-14 Simon J Gerraty <sjg@beast.crufty.net> 4351d3f2ddcSSimon J. Gerraty 4361d3f2ddcSSimon J. Gerraty * install-mk (MK_VERSION): 20220314 4371d3f2ddcSSimon J. Gerraty 4381d3f2ddcSSimon J. Gerraty * dirdeps-options.mk: allow options to be per RELDIR 4391d3f2ddcSSimon J. Gerraty try DIRDEPS_OPTIONS_QUALIFIER_LIST first prefixed 4401d3f2ddcSSimon J. Gerraty with ${DEP_RELDIR}. 4411d3f2ddcSSimon J. Gerraty 4421d3f2ddcSSimon J. Gerraty2022-02-14 Simon J Gerraty <sjg@beast.crufty.net> 4431d3f2ddcSSimon J. Gerraty 4441d3f2ddcSSimon J. Gerraty * install-mk (MK_VERSION): 20220214 4451d3f2ddcSSimon J. Gerraty 4461d3f2ddcSSimon J. Gerraty * cc-wrap.mk: fix :@ modifier 4471d3f2ddcSSimon J. Gerraty 448a6f0e10bSSimon J. Gerraty2022-02-06 Simon J Gerraty <sjg@beast.crufty.net> 449a6f0e10bSSimon J. Gerraty 450a6f0e10bSSimon J. Gerraty * install-mk (MK_VERSION): 20220206 451a6f0e10bSSimon J. Gerraty 452a6f0e10bSSimon J. Gerraty * cc-wrap.mk: docuement how CCACHE etc might be set for 453a6f0e10bSSimon J. Gerraty maximum flexibility 454a6f0e10bSSimon J. Gerraty 455a6f0e10bSSimon J. Gerraty2022-02-05 Simon J Gerraty <sjg@beast.crufty.net> 456a6f0e10bSSimon J. Gerraty 457a6f0e10bSSimon J. Gerraty * sys.vars.mk: use JOT_CMD (jot or seq) if available for M_JOT 458a6f0e10bSSimon J. Gerraty 4599f45a3c8SSimon J. Gerraty2022-02-04 Simon J Gerraty <sjg@beast.crufty.net> 4609f45a3c8SSimon J. Gerraty 4619f45a3c8SSimon J. Gerraty * install-mk (MK_VERSION): 20220204 4629f45a3c8SSimon J. Gerraty 4639f45a3c8SSimon J. Gerraty * host-target.mk: use .MAKE.OS if available 4649f45a3c8SSimon J. Gerraty 4659f45a3c8SSimon J. Gerraty2022-02-02 Simon J Gerraty <sjg@beast.crufty.net> 4669f45a3c8SSimon J. Gerraty 4679f45a3c8SSimon J. Gerraty * install-mk (MK_VERSION): 20220202 4689f45a3c8SSimon J. Gerraty 4699f45a3c8SSimon J. Gerraty * cc-wrap.mk: allow other entries in CC_WRAP_FILTER 4709f45a3c8SSimon J. Gerraty We add our filter on extensions last, so prior filters 4719f45a3c8SSimon J. Gerraty can apply to the whole value of .IMPSRC 4729f45a3c8SSimon J. Gerraty 4739f45a3c8SSimon J. Gerraty2022-02-01 Simon J Gerraty <sjg@beast.crufty.net> 4749f45a3c8SSimon J. Gerraty 4759f45a3c8SSimon J. Gerraty * cc-wrap.mk: take advantage of target local variables to 4769f45a3c8SSimon J. Gerraty wrap compilers like CC CXX with wrappers like ccache distcc etc 4779f45a3c8SSimon J. Gerraty 4789f45a3c8SSimon J. Gerraty2022-01-28 Simon J Gerraty <sjg@beast.crufty.net> 4799f45a3c8SSimon J. Gerraty 4809f45a3c8SSimon J. Gerraty * meta2deps: we do not expect any trace data for setid apps 4819f45a3c8SSimon J. Gerraty 4829f45a3c8SSimon J. Gerraty2022-01-26 Simon J Gerraty <sjg@beast.crufty.net> 4839f45a3c8SSimon J. Gerraty 4849f45a3c8SSimon J. Gerraty * dirdeps.mk: ensure TARGET_SPEC and TARGET_SPEC_VARS are passed 4859f45a3c8SSimon J. Gerraty to sub-make using DIRDEPS_CACHE 4869f45a3c8SSimon J. Gerraty 4879f45a3c8SSimon J. Gerraty2022-01-07 Simon J Gerraty <sjg@beast.crufty.net> 4889f45a3c8SSimon J. Gerraty 4899f45a3c8SSimon J. Gerraty * dirdeps.mk: use _cache_script to minimize the number of shells 4909f45a3c8SSimon J. Gerraty forked when generating dirdeps.cache 4919f45a3c8SSimon J. Gerraty 4929f45a3c8SSimon J. Gerraty2022-01-02 Simon J Gerraty <sjg@beast.crufty.net> 4939f45a3c8SSimon J. Gerraty 4949f45a3c8SSimon J. Gerraty * install-mk (MK_VERSION): 20220101 4959f45a3c8SSimon J. Gerraty 4969f45a3c8SSimon J. Gerraty * dirdeps.mk: initialize DEP_* and _debug_reldir earlier. 4979f45a3c8SSimon J. Gerraty If initial DIRDEPS are from command line, create the target 4989f45a3c8SSimon J. Gerraty _dirdeps_cmdline as an indication. 4999f45a3c8SSimon J. Gerraty 5009f45a3c8SSimon J. Gerraty2022-01-01 Simon J Gerraty <sjg@beast.crufty.net> 5019f45a3c8SSimon J. Gerraty 5029f45a3c8SSimon J. Gerraty * init.mk (_SKIP_BUILD): when doing DIRDEPS_BUILD 5039f45a3c8SSimon J. Gerraty at top-level only some targets are allowed at level 0, 5049f45a3c8SSimon J. Gerraty for leaf makefiles only the default (all) target is restricted 5059f45a3c8SSimon J. Gerraty 5069f45a3c8SSimon J. Gerraty2021-12-28 Simon J Gerraty <sjg@beast.crufty.net> 5079f45a3c8SSimon J. Gerraty 5089f45a3c8SSimon J. Gerraty * install-mk (MK_VERSION): 20211228 5099f45a3c8SSimon J. Gerraty 5109f45a3c8SSimon J. Gerraty * meta2deps.py: filemon on Linux is not as reliable as we might 5119f45a3c8SSimon J. Gerraty like, we do not want to update DIRDEPS if filemon output is 5129f45a3c8SSimon J. Gerraty incomplete. Track pids that we 'E'xec and make sure we see an 5139f45a3c8SSimon J. Gerraty e'X'it for each one. Throw an error if we are missing any 'X' 5149f45a3c8SSimon J. Gerraty records. 5159f45a3c8SSimon J. Gerraty 51612904384SSimon J. Gerraty2021-12-12 Simon J Gerraty <sjg@beast.crufty.net> 51712904384SSimon J. Gerraty 51812904384SSimon J. Gerraty * sys.mk: simplify; include meta.sys.mk if MK_META_MODE is yes. 51912904384SSimon J. Gerraty 52012904384SSimon J. Gerraty * meta.sys.mk: do not check for /dev/filemon if .MAKE.PATH_FILEMON 52112904384SSimon J. Gerraty is something else. 52212904384SSimon J. Gerraty 52312904384SSimon J. Gerraty * meta.autodep.mk: we can now reference ${.SUFFIXES} 52412904384SSimon J. Gerraty 52512904384SSimon J. Gerraty * meta2deps.py: derive a list of dirdep extensions from 52612904384SSimon J. Gerraty TARGET_SPEC to trim from dirdeps. 52712904384SSimon J. Gerraty 52812904384SSimon J. Gerraty * dirdeps.mk: flip the computation of qualified vs unqualified 52912904384SSimon J. Gerraty dirdeps - it is much simpler to check for unqualified first. 53012904384SSimon J. Gerraty 53112904384SSimon J. Gerraty2021-12-11 Simon J Gerraty <sjg@beast.crufty.net> 53212904384SSimon J. Gerraty 53312904384SSimon J. Gerraty * install-mk (MK_VERSION): 20211212 53412904384SSimon J. Gerraty 53512904384SSimon J. Gerraty * auto.dep.mk: rearrange so that the trivial implementation 53612904384SSimon J. Gerraty for recent bmake is more obvious. 53712904384SSimon J. Gerraty 53812904384SSimon J. Gerraty2021-12-07 Simon J Gerraty <sjg@beast.crufty.net> 53912904384SSimon J. Gerraty 54012904384SSimon J. Gerraty * install-mk (MK_VERSION): 20211207 54112904384SSimon J. Gerraty 54212904384SSimon J. Gerraty * Ensure guard targets are .NOTMAIN 54312904384SSimon J. Gerraty 54412904384SSimon J. Gerraty * meta.sys.mk: check for nofilemon support when we skip level 0 54512904384SSimon J. Gerraty 54612904384SSimon J. Gerraty * auto.dep.mk: make this usable in meta mode 54712904384SSimon J. Gerraty for platforms that cannot use meta.autodep.mk 54812904384SSimon J. Gerraty 54912904384SSimon J. Gerraty * meta2deps.py: avoid confusion if MACHINE and another 55012904384SSimon J. Gerraty TARGET_SPEC_VAR have same value. 55112904384SSimon J. Gerraty 55212904384SSimon J. Gerraty2021-11-27 Simon J Gerraty <sjg@beast.crufty.net> 55312904384SSimon J. Gerraty 55412904384SSimon J. Gerraty * dirdeps.mk: when building dirdeps.cache, minimize the amount of 55512904384SSimon J. Gerraty data put into env, by stripping ${SRCTOP}/ from each entry. 55612904384SSimon J. Gerraty A long sandbox name can double the amount of memory consumed and 55712904384SSimon J. Gerraty in extreme cases cause failure. 55812904384SSimon J. Gerraty While we are at it, strip ${SRCTOP}/ from a lot of the debug output. 55912904384SSimon J. Gerraty 56012904384SSimon J. Gerraty2021-11-11 Simon J Gerraty <sjg@beast.crufty.net> 56112904384SSimon J. Gerraty 56212904384SSimon J. Gerraty * install-mk (MK_VERSION): 20211111 56312904384SSimon J. Gerraty 56412904384SSimon J. Gerraty * meta.stage.mk (LN_CP_SCRIPT): if staging to NFS cp -p can fail 56512904384SSimon J. Gerraty so fallback to cp if necessary. 56612904384SSimon J. Gerraty 56712904384SSimon J. Gerraty2021-10-30 Simon J Gerraty <sjg@beast.crufty.net> 56812904384SSimon J. Gerraty 56912904384SSimon J. Gerraty * man.mk (CMT2DOC): use cmt2doc.py rather than the 30 year 57012904384SSimon J. Gerraty old cmt2doc.pl 57112904384SSimon J. Gerraty 57212904384SSimon J. Gerraty2021-10-24 Simon J Gerraty <sjg@beast.crufty.net> 57312904384SSimon J. Gerraty 57412904384SSimon J. Gerraty * meta.stage.mk: stage_as_and_symlink use ${STAGE_LINK_AS_$f:U$f} 57512904384SSimon J. Gerraty as the symlink (rare) 57612904384SSimon J. Gerraty 57712904384SSimon J. Gerraty2021-10-16 Simon J Gerraty <sjg@beast.crufty.net> 57812904384SSimon J. Gerraty 57912904384SSimon J. Gerraty * autoconf.mk: if AUTOCONF_GENERATED_MAKEFILE is set and has not 58012904384SSimon J. Gerraty been read, throw an error after running configure telling user to 58112904384SSimon J. Gerraty restart. 58212904384SSimon J. Gerraty 58312904384SSimon J. Gerraty2021-10-13 Simon J Gerraty <sjg@beast.crufty.net> 58412904384SSimon J. Gerraty 58512904384SSimon J. Gerraty * install-mk (MK_VERSION): 20211011 58612904384SSimon J. Gerraty 58712904384SSimon J. Gerraty * Add support for SCO_SV 58812904384SSimon J. Gerraty 58912904384SSimon J. Gerraty2021-10-01 Simon J Gerraty <sjg@beast.crufty.net> 59012904384SSimon J. Gerraty 59112904384SSimon J. Gerraty * install-mk (MK_VERSION): 20211001 59212904384SSimon J. Gerraty 59312904384SSimon J. Gerraty * man.mk: use MAN_SUFFIXES and CMT2DOC_SUFFIXES for more 59412904384SSimon J. Gerraty flexibility 59512904384SSimon J. Gerraty 59612904384SSimon J. Gerraty2021-09-13 Simon J Gerraty <sjg@beast.crufty.net> 59712904384SSimon J. Gerraty 59812904384SSimon J. Gerraty * options.mk (describe-options): print options and their values 59912904384SSimon J. Gerraty and optional description 60012904384SSimon J. Gerraty 60112904384SSimon J. Gerraty2021-09-11 Simon J Gerraty <sjg@beast.crufty.net> 60212904384SSimon J. Gerraty 60312904384SSimon J. Gerraty * install-mk (MK_VERSION): 20210911 60412904384SSimon J. Gerraty 60512904384SSimon J. Gerraty * options.mk (show-options): print options and their values 60612904384SSimon J. Gerraty 60712904384SSimon J. Gerraty2021-09-08 Simon J Gerraty <sjg@beast.crufty.net> 60812904384SSimon J. Gerraty 60912904384SSimon J. Gerraty * install-mk (MK_VERSION): 20210909 61012904384SSimon J. Gerraty 61112904384SSimon J. Gerraty * lib.mk: apply patch from <daniel@octaforge.org> 61212904384SSimon J. Gerraty to fix shared libs on Linux 61312904384SSimon J. Gerraty 61412904384SSimon J. Gerraty2021-08-08 Simon J Gerraty <sjg@beast.crufty.net> 61512904384SSimon J. Gerraty 61612904384SSimon J. Gerraty * install-mk (MK_VERSION): 20210808 61712904384SSimon J. Gerraty 61812904384SSimon J. Gerraty * options.mk: issue warning for WITH_*=no 61912904384SSimon J. Gerraty 620b0c40a00SSimon J. Gerraty2021-06-16 Simon J Gerraty <sjg@beast.crufty.net> 621b0c40a00SSimon J. Gerraty 622b0c40a00SSimon J. Gerraty * install-mk (MK_VERSION): 20210616 623b0c40a00SSimon J. Gerraty 624b0c40a00SSimon J. Gerraty * dirdeps.mk: when using .MAKE.DEPENDFILE_PREFERENCE to find 625b0c40a00SSimon J. Gerraty depend files to read, anchor MACHINE at , or end of string 626b0c40a00SSimon J. Gerraty to avoid prefix match. 627b0c40a00SSimon J. Gerraty 628b0c40a00SSimon J. Gerraty2021-05-04 Simon J Gerraty <sjg@beast.crufty.net> 629b0c40a00SSimon J. Gerraty 630b0c40a00SSimon J. Gerraty * install-mk (MK_VERSION): 20210504 631b0c40a00SSimon J. Gerraty 632b0c40a00SSimon J. Gerraty * dirdeps.mk: re-implement ALL_MACHINES support to better 633b0c40a00SSimon J. Gerraty cater for local complexities, when ONLY_TARGET_SPEC_LIST 634b0c40a00SSimon J. Gerraty is not set. local.dirdeps.mk can set 635b0c40a00SSimon J. Gerraty DIRDEPS_ALL_MACHINES_FILTER and/or 636b0c40a00SSimon J. Gerraty DIRDEPS_ALL_MACHINES_FILTER_XTRAS to filter the results we get 637b0c40a00SSimon J. Gerraty from listing all existing Makefile.depend.* 638b0c40a00SSimon J. Gerraty 639b0c40a00SSimon J. Gerraty2021-04-20 Simon J Gerraty <sjg@beast.crufty.net> 640b0c40a00SSimon J. Gerraty 641b0c40a00SSimon J. Gerraty * install-mk (MK_VERSION): 20210420 642b0c40a00SSimon J. Gerraty 643b0c40a00SSimon J. Gerraty * dirdeps.mk: revert previous - not always safe. 644b0c40a00SSimon J. Gerraty 645b0c40a00SSimon J. Gerraty2021-03-20 Simon J Gerraty <sjg@beast.crufty.net> 646b0c40a00SSimon J. Gerraty 647b0c40a00SSimon J. Gerraty * install-mk (MK_VERSION): 20210321 648b0c40a00SSimon J. Gerraty 649b0c40a00SSimon J. Gerraty * dirdeps.mk: when generating dirdeps.cache 650b0c40a00SSimon J. Gerraty we only need to hook the initial DIRDEPS to the 651b0c40a00SSimon J. Gerraty dirdeps target. That and any _build_xtra_dirs (like tests which 652b0c40a00SSimon J. Gerraty should not be hooked directly to the dependency graph - to avoid 653b0c40a00SSimon J. Gerraty cycles) 654b0c40a00SSimon J. Gerraty 655dba7b0efSSimon J. Gerraty2021-01-30 Simon J Gerraty <sjg@beast.crufty.net> 656dba7b0efSSimon J. Gerraty 657dba7b0efSSimon J. Gerraty * install-mk (MK_VERSION): 20210130 658dba7b0efSSimon J. Gerraty 659dba7b0efSSimon J. Gerraty * dirdeps.mk: expr 2 - 1 - 1 exits with a bad status 660dba7b0efSSimon J. Gerraty we need to guard against this in DIRDEP_LOADAVG_REPORT. 661dba7b0efSSimon J. Gerraty 662dba7b0efSSimon J. Gerraty * dirdeps.mk: restore respect for TARGET_MACHINE 663dba7b0efSSimon J. Gerraty 66406b9b3e0SSimon J. Gerraty2021-01-06 Simon J Gerraty <sjg@beast.crufty.net> 66506b9b3e0SSimon J. Gerraty 66606b9b3e0SSimon J. Gerraty * install-mk (MK_VERSION): 20210101 66706b9b3e0SSimon J. Gerraty 66806b9b3e0SSimon J. Gerraty * dirdeps.mk: first time we are read, just use TARGET_SPEC for 66906b9b3e0SSimon J. Gerraty _DEP_TARGET_SPEC 67006b9b3e0SSimon J. Gerraty 67106b9b3e0SSimon J. Gerraty2020-12-22 Simon J Gerraty <sjg@beast.crufty.net> 67206b9b3e0SSimon J. Gerraty 67306b9b3e0SSimon J. Gerraty * sys.mk (MAKE_SHELL): use ${.SHELL:Ush} 67406b9b3e0SSimon J. Gerraty and use := when setting SHELL 67506b9b3e0SSimon J. Gerraty 67606b9b3e0SSimon J. Gerraty2020-12-21 Simon J Gerraty <sjg@beast.crufty.net> 67706b9b3e0SSimon J. Gerraty 67806b9b3e0SSimon J. Gerraty * install-mk (MK_VERSION): 20201221 67906b9b3e0SSimon J. Gerraty 68006b9b3e0SSimon J. Gerraty * dirdeps-options.mk: latest bmake allows only one arg to .undef 68106b9b3e0SSimon J. Gerraty 68206b9b3e0SSimon J. Gerraty2020-12-11 Simon J Gerraty <sjg@beast.crufty.net> 68306b9b3e0SSimon J. Gerraty 68406b9b3e0SSimon J. Gerraty * dirdeps-targets.mk: allow for "." in DIRDEPS_TARGETS_DIRS 68506b9b3e0SSimon J. Gerraty so that any directory can be treated as a target. 68606b9b3e0SSimon J. Gerraty 68706b9b3e0SSimon J. Gerraty2020-11-26 Simon J Gerraty <sjg@beast.crufty.net> 68806b9b3e0SSimon J. Gerraty 68906b9b3e0SSimon J. Gerraty * install-mk (MK_VERSION): 20201126 69006b9b3e0SSimon J. Gerraty 69106b9b3e0SSimon J. Gerraty * own.mk: use .MAKE.{UID,GID} if available. 69206b9b3e0SSimon J. Gerraty 69306b9b3e0SSimon J. Gerraty * init.mk: suppress _SKIP_BUILD warning if doing -V 69406b9b3e0SSimon J. Gerraty 69506b9b3e0SSimon J. Gerraty2020-11-20 Simon J Gerraty <sjg@beast.crufty.net> 69606b9b3e0SSimon J. Gerraty 69706b9b3e0SSimon J. Gerraty * install-mk (MK_VERSION): 20201120 69806b9b3e0SSimon J. Gerraty 69906b9b3e0SSimon J. Gerraty * init.mk: rename LEVEL0_TARGETS to DIRDEPS_BUILD_LEVEL0_TARGETS 70006b9b3e0SSimon J. Gerraty 70106b9b3e0SSimon J. Gerraty * dirdeps-targets.mk: fix typo in comment 70206b9b3e0SSimon J. Gerraty 703e2eeea75SSimon J. Gerraty2020-11-06 Simon J Gerraty <sjg@beast.crufty.net> 704e2eeea75SSimon J. Gerraty 705e2eeea75SSimon J. Gerraty * install-mk (MK_VERSION): 20201106 706e2eeea75SSimon J. Gerraty 707e2eeea75SSimon J. Gerraty * meta.autodep.mk: use OBJ_EXTENSIONS rather than hardcode sed 708e2eeea75SSimon J. Gerraty args to tweak extensions for local deps. 709e2eeea75SSimon J. Gerraty 710956e45f6SSimon J. Gerraty2020-11-01 Simon J Gerraty <sjg@beast.crufty.net> 711956e45f6SSimon J. Gerraty 712956e45f6SSimon J. Gerraty * install-mk (MK_VERSION): 20201101 713956e45f6SSimon J. Gerraty 714956e45f6SSimon J. Gerraty * dirdeps.mk: most leaf makefiles are not suitable for building 715956e45f6SSimon J. Gerraty dirdeps.cache so if RELDIR is not "." use dirdeps.mk 716956e45f6SSimon J. Gerraty 717956e45f6SSimon J. Gerraty2020-10-28 Simon J Gerraty <sjg@beast.crufty.net> 718956e45f6SSimon J. Gerraty 719956e45f6SSimon J. Gerraty * install-mk (MK_VERSION): 20201028 720956e45f6SSimon J. Gerraty 721956e45f6SSimon J. Gerraty * dirdeps.mk: if we don't have :range use equivalent of M_RANGE 722956e45f6SSimon J. Gerraty when building dirdeps.cache for leaf directory use -f dirdeps.mk 723956e45f6SSimon J. Gerraty 724956e45f6SSimon J. Gerraty * sys.vars.mk: add M_JOT and M_RANGE 725956e45f6SSimon J. Gerraty 726956e45f6SSimon J. Gerraty2020-10-01 Simon J Gerraty <sjg@beast.crufty.net> 727956e45f6SSimon J. Gerraty 728956e45f6SSimon J. Gerraty * install-mk (MK_VERSION): 20201001 729956e45f6SSimon J. Gerraty 730956e45f6SSimon J. Gerraty * meta2deps.{py,sh}: throw an error if we don't see filemon version 731956e45f6SSimon J. Gerraty 732956e45f6SSimon J. Gerraty2020-09-09 Simon J Gerraty <sjg@beast.crufty.net> 733956e45f6SSimon J. Gerraty 734956e45f6SSimon J. Gerraty * install-mk (MK_VERSION): 20200909 735956e45f6SSimon J. Gerraty 736956e45f6SSimon J. Gerraty * dirdeps-cache-update.mk: use cache_update_dirdep as guard target 737956e45f6SSimon J. Gerraty 7382c3632d1SSimon J. Gerraty2020-08-26 Simon J Gerraty <sjg@beast.crufty.net> 7392c3632d1SSimon J. Gerraty 7402c3632d1SSimon J. Gerraty * dirdeps.mk: ensure we cannot confuse a static cache for dynamic 7412c3632d1SSimon J. Gerraty (even more rare that use of static cache is playing clever tricks 7422c3632d1SSimon J. Gerraty with it) 7432c3632d1SSimon J. Gerraty 7442c3632d1SSimon J. Gerraty2020-08-16 Simon J Gerraty <sjg@beast.crufty.net> 7452c3632d1SSimon J. Gerraty 7462c3632d1SSimon J. Gerraty * dirdeps-cache-update.mk: allow 7472c3632d1SSimon J. Gerraty MK_STATIC_DIRDEPS_CACHE_UPDATE_IMMEDIATE to control when we 7482c3632d1SSimon J. Gerraty actually update STATIC_DIRDEPS_CACHE. 7492c3632d1SSimon J. Gerraty 7502c3632d1SSimon J. Gerraty * stage-install.sh: create dest directory if needed 7512c3632d1SSimon J. Gerraty before running install(1) 7522c3632d1SSimon J. Gerraty 7532c3632d1SSimon J. Gerraty2020-08-10 Simon J Gerraty <sjg@beast.crufty.net> 7542c3632d1SSimon J. Gerraty 7552c3632d1SSimon J. Gerraty * dirdeps-targets.mk: include Makefile.dirdeps.options 7562c3632d1SSimon J. Gerraty 7572c3632d1SSimon J. Gerraty * dirdeps.mk: use _TARGETS if defined for DIRDEPS_CACHE 7582c3632d1SSimon J. Gerraty 7592c3632d1SSimon J. Gerraty2020-08-09 Simon J Gerraty <sjg@beast.crufty.net> 7602c3632d1SSimon J. Gerraty 7612c3632d1SSimon J. Gerraty * dirdeps.mk: default BUILD_DIRDEPS_MAKEFILE to empty 7622c3632d1SSimon J. Gerraty 7632c3632d1SSimon J. Gerraty * dirdeps-cache-update.mk: building parallel cache update 7642c3632d1SSimon J. Gerraty under the context of dirdeps-cached would be ideal, but 7652c3632d1SSimon J. Gerraty is problematic, so it runs as a sibling. 7662c3632d1SSimon J. Gerraty Use cache-built target to ensure we wait for it to complete if 7672c3632d1SSimon J. Gerraty necessary. 7682c3632d1SSimon J. Gerraty 7692c3632d1SSimon J. Gerraty2020-08-06 Simon J Gerraty <sjg@beast.crufty.net> 7702c3632d1SSimon J. Gerraty 7712c3632d1SSimon J. Gerraty * install-mk (MK_VERSION): 20200806 7722c3632d1SSimon J. Gerraty 7732c3632d1SSimon J. Gerraty * dirdeps-options: allow TARGET_SPEC to affect option values. 7742c3632d1SSimon J. Gerraty Use DIRDEPS_OPTIONS_QUALIFIER_LIST before using bare MK_* 7752c3632d1SSimon J. Gerraty 7762c3632d1SSimon J. Gerraty * dirdeps-targets.mk: check for MK_STATIC_DIRDEPS_CACHE defined 7772c3632d1SSimon J. Gerraty before looking for STATIC_DIRDEPS_CACHE 7782c3632d1SSimon J. Gerraty 7792c3632d1SSimon J. Gerraty2020-08-05 Simon J Gerraty <sjg@beast.crufty.net> 7802c3632d1SSimon J. Gerraty 7812c3632d1SSimon J. Gerraty * host-target.mk: Darwin use MACHINE for HOST_ARCH too 7822c3632d1SSimon J. Gerraty 7832c3632d1SSimon J. Gerraty * dirdeps-options.mk: improve debug output 7842c3632d1SSimon J. Gerraty 7852c3632d1SSimon J. Gerraty2020-07-22 Simon J Gerraty <sjg@beast.crufty.net> 7862c3632d1SSimon J. Gerraty 7872c3632d1SSimon J. Gerraty * dirdeps.mk: set and export DYNAMIC_DIRDEPS_CACHE 7882c3632d1SSimon J. Gerraty for use by dirdeps-cache-update.mk 7892c3632d1SSimon J. Gerraty 7902c3632d1SSimon J. Gerraty * dirdeps-targets.mk: set and export STATIC_DIRDEPS_CACHE 7912c3632d1SSimon J. Gerraty for use by dirdeps-cache-update.mk even if we don't use it. 7922c3632d1SSimon J. Gerraty 7932c3632d1SSimon J. Gerraty * dirdeps-cache-update.mk: we only need worry about the background 7942c3632d1SSimon J. Gerraty update case, with the above, the update from DIRDEPS_CACHE is 7952c3632d1SSimon J. Gerraty simple. 7962c3632d1SSimon J. Gerraty 7972c3632d1SSimon J. Gerraty * meta2deps.py: R 1234 . is not interesting 7982c3632d1SSimon J. Gerraty 7992c3632d1SSimon J. Gerraty2020-07-20 Simon J Gerraty <sjg@beast.crufty.net> 8002c3632d1SSimon J. Gerraty 8012c3632d1SSimon J. Gerraty * sys.mk: default MK_STATIC_DIRDEPS_CACHE from MK_DIRDEPS_CACHE 8022c3632d1SSimon J. Gerraty 8032c3632d1SSimon J. Gerraty * dirdeps-options.mk: do not :tu DIRDEPS_OPTIONS 8042c3632d1SSimon J. Gerraty allows use of lower case for pseudo options. 8052c3632d1SSimon J. Gerraty 8062c3632d1SSimon J. Gerraty * dirdeps-cache-update.mk: magic to deal with STATIC_DIRDEPS_CACHE 8072c3632d1SSimon J. Gerraty 8082c3632d1SSimon J. Gerraty2020-07-18 Simon J Gerraty <sjg@beast.crufty.net> 8092c3632d1SSimon J. Gerraty 8102c3632d1SSimon J. Gerraty * dirdeps-targets.mk: Look for Makefile.dirdeps.cache 8112c3632d1SSimon J. Gerraty which allows us to have a static cache for expensive targets. 8122c3632d1SSimon J. Gerraty Use -DWITHOUT_STATIC_DIRDEPS_CACHE -DWITH_DIRDEPS_CACHE 8132c3632d1SSimon J. Gerraty to regenerate the dirdeps.cache it is a copy of. 8142c3632d1SSimon J. Gerraty 8152c3632d1SSimon J. Gerraty2020-07-17 Simon J Gerraty <sjg@beast.crufty.net> 8162c3632d1SSimon J. Gerraty 8172c3632d1SSimon J. Gerraty * Get rid of BUILD_AT_LEVEL0, MK_DIRDEPS_BUILD makes more sense. 8182c3632d1SSimon J. Gerraty 8192c3632d1SSimon J. Gerraty2020-07-16 Simon J Gerraty <sjg@beast.crufty.net> 8202c3632d1SSimon J. Gerraty 8212c3632d1SSimon J. Gerraty * dirdeps.mk (DIRDEP_LOADAVG_REPORT): make it easy to record 8222c3632d1SSimon J. Gerraty load averages at intervals during build. 8232c3632d1SSimon J. Gerraty 8242c3632d1SSimon J. Gerraty2020-07-15 Simon J Gerraty <sjg@beast.crufty.net> 8252c3632d1SSimon J. Gerraty 8262c3632d1SSimon J. Gerraty * install-mk (MK_VERSION): 20200715 8272c3632d1SSimon J. Gerraty 8282c3632d1SSimon J. Gerraty * dirdeps.mk: tweak Checking line to make matching Finished 8292c3632d1SSimon J. Gerraty lines for post-build analysis easier. 8302c3632d1SSimon J. Gerraty 8312c3632d1SSimon J. Gerraty * meta.autodep.mk: use !defined(WITHOUT_META_STATS) 8322c3632d1SSimon J. Gerraty 8332c3632d1SSimon J. Gerraty * progs.mk: avoid prog.mk outputting multiple Finished lines 8342c3632d1SSimon J. Gerraty 8352c3632d1SSimon J. Gerraty2020-07-11 Simon J Gerraty <sjg@beast.crufty.net> 8362c3632d1SSimon J. Gerraty 8372c3632d1SSimon J. Gerraty * dirdeps.mk: further optimize dirdeps.cache 8382c3632d1SSimon J. Gerraty generate a DIRDEPS.${.TARGET} list for other purposes 8392c3632d1SSimon J. Gerraty and improve the layout. 8402c3632d1SSimon J. Gerraty 8413841c287SSimon J. Gerraty2020-07-10 Simon J Gerraty <sjg@beast.crufty.net> 8423841c287SSimon J. Gerraty 8433841c287SSimon J. Gerraty * dirdeps.mk: optimize content of dirdeps.cache 8443841c287SSimon J. Gerraty 8453841c287SSimon J. Gerraty2020-06-28 Simon J Gerraty <sjg@beast.crufty.net> 8463841c287SSimon J. Gerraty 8473841c287SSimon J. Gerraty * sys/*.mk: make it easier for local*sys.mk to customize by 8483841c287SSimon J. Gerraty using ?= 8493841c287SSimon J. Gerraty 8503841c287SSimon J. Gerraty2020-06-22 Simon J Gerraty <sjg@beast.crufty.net> 8513841c287SSimon J. Gerraty 8523841c287SSimon J. Gerraty * gendirdeps.mk (LOCAL_DEPENDS_GUARD): if we don't build at level 0 8533841c287SSimon J. Gerraty it is much safer to guard local depends with a simple check for 8543841c287SSimon J. Gerraty .MAKE.LEVEL > 0 8553841c287SSimon J. Gerraty 8563841c287SSimon J. Gerraty2020-06-10 Simon J Gerraty <sjg@beast.crufty.net> 8573841c287SSimon J. Gerraty 8583841c287SSimon J. Gerraty * install-mk (MK_VERSION): 20200610 8593841c287SSimon J. Gerraty 8603841c287SSimon J. Gerraty * mkopt.sh: this needs posix shell so #!/bin/sh should be ok 8613841c287SSimon J. Gerraty 862ef0b2538SSimon J. Gerraty2020-06-06 Simon J Gerraty <sjg@beast.crufty.net> 863ef0b2538SSimon J. Gerraty 864ef0b2538SSimon J. Gerraty * install-mk (MK_VERSION): 20200606 865ef0b2538SSimon J. Gerraty 866ef0b2538SSimon J. Gerraty * dirdeps-targets.mk: allow for filtering of .TARGETS 867ef0b2538SSimon J. Gerraty 868ef0b2538SSimon J. Gerraty * meta2deps.py: fix bug in processing 'L'ink and 'M'ove 869ef0b2538SSimon J. Gerraty entries - and we don't care about 'W'rite entries. 870ef0b2538SSimon J. Gerraty Also ignore absolute paths that do not exist. 871ef0b2538SSimon J. Gerraty 872ef0b2538SSimon J. Gerraty2020-05-25 Simon J Gerraty <sjg@beast.crufty.net> 873ef0b2538SSimon J. Gerraty 874ef0b2538SSimon J. Gerraty * install-mk (MK_VERSION): 20200525 875ef0b2538SSimon J. Gerraty 876ef0b2538SSimon J. Gerraty * init.mk: expand and simplify handling of qualified vars 877ef0b2538SSimon J. Gerraty like CPPFLAGS.${.TARGET:T} 878ef0b2538SSimon J. Gerraty 87949caa483SSimon J. Gerraty2020-05-15 Simon J Gerraty <sjg@beast.crufty.net> 88049caa483SSimon J. Gerraty 88149caa483SSimon J. Gerraty * install-mk (MK_VERSION): 20200515 88249caa483SSimon J. Gerraty 88349caa483SSimon J. Gerraty * dirdeps.mk: set _debug_* earlier and allow passing -d* 88449caa483SSimon J. Gerraty flags to submake when building DIRDEPS_CACHE 88549caa483SSimon J. Gerraty 88649caa483SSimon J. Gerraty2020-05-09 Simon J Gerraty <sjg@beast.crufty.net> 88749caa483SSimon J. Gerraty 88849caa483SSimon J. Gerraty * whats.mk: more easily extensible 88949caa483SSimon J. Gerraty 89049caa483SSimon J. Gerraty2020-05-02 Simon J Gerraty <sjg@beast.crufty.net> 89149caa483SSimon J. Gerraty 89249caa483SSimon J. Gerraty * whats.mk: greatly simplify by adding what.c to SRCS 89349caa483SSimon J. Gerraty 89449caa483SSimon J. Gerraty2020-05-01 Simon J Gerraty <sjg@beast.crufty.net> 89549caa483SSimon J. Gerraty 89649caa483SSimon J. Gerraty * whats.mk: for libs take care how we add to *OBJS 89749caa483SSimon J. Gerraty 89849caa483SSimon J. Gerraty * lib.mk: : works better with whats.mk 89949caa483SSimon J. Gerraty 90049caa483SSimon J. Gerraty2020-04-25 Simon J Gerraty <sjg@beast.crufty.net> 90149caa483SSimon J. Gerraty 90249caa483SSimon J. Gerraty * install-mk (MK_VERSION): 20200420 90349caa483SSimon J. Gerraty 90449caa483SSimon J. Gerraty * meta.stage.mk: it is not a STAGE_CONFLICT if some-target.dirdep 90549caa483SSimon J. Gerraty contains the same ${RELDIR} and a prefix match for our ${TARGET_SPEC} 90649caa483SSimon J. Gerraty 90749caa483SSimon J. Gerraty2020-04-16 Simon J Gerraty <sjg@beast.crufty.net> 90849caa483SSimon J. Gerraty 90949caa483SSimon J. Gerraty * install-mk (MK_VERSION): 20200416 91049caa483SSimon J. Gerraty 91149caa483SSimon J. Gerraty * sys/*.mk: set MAKE_SHELL rather than SHELL so as not to 91249caa483SSimon J. Gerraty interfere with user env. 91349caa483SSimon J. Gerraty 91449caa483SSimon J. Gerraty * sys.mk: default MAKE_SHELL to sh and SHELL to MAKE_SHELL 91549caa483SSimon J. Gerraty 91649caa483SSimon J. Gerraty * autodep.mk: use MAKE_SHELL. 91749caa483SSimon J. Gerraty 91849caa483SSimon J. Gerraty2019-11-21 Simon J Gerraty <sjg@beast.crufty.net> 91949caa483SSimon J. Gerraty 92049caa483SSimon J. Gerraty * gendirdeps.mk: clear .SUFFIXES to avoid a lot of 92149caa483SSimon J. Gerraty wasted effort, and unexport _meta_files when no longer needed as 92249caa483SSimon J. Gerraty it consumes space we need for command line. 92349caa483SSimon J. Gerraty 92449caa483SSimon J. Gerraty2019-11-11 Simon J Gerraty <sjg@beast.crufty.net> 92549caa483SSimon J. Gerraty 92649caa483SSimon J. Gerraty * dirdeps.mk _DIRDEP_USE: use DIRDEP_DIR and add 92749caa483SSimon J. Gerraty DIRDEP_USE_PRELUDE at start - facilitates job distribution 92849caa483SSimon J. Gerraty 92949caa483SSimon J. Gerraty2019-10-04 Simon J Gerraty <sjg@beast.crufty.net> 93049caa483SSimon J. Gerraty 93149caa483SSimon J. Gerraty * dirdeps-targets.mk: Use TARGET_SPEC_LAST_LIST 93249caa483SSimon J. Gerraty defaults to ${${TARGET_SPEC_VARS:[-1]}_LIST} to match valid 93349caa483SSimon J. Gerraty TARGET_SPEC qualified depend files. 93449caa483SSimon J. Gerraty 93549caa483SSimon J. Gerraty2019-10-02 Simon J Gerraty <sjg@beast.crufty.net> 93649caa483SSimon J. Gerraty 93749caa483SSimon J. Gerraty * dirdeps-targets.mk: encapsulate logic for finding top-level 93849caa483SSimon J. Gerraty targets to set initial DIRDEPS for DIRDEPS_BUILD 93949caa483SSimon J. Gerraty 94049caa483SSimon J. Gerraty2019-09-27 Simon J Gerraty <sjg@beast.crufty.net> 94149caa483SSimon J. Gerraty 94249caa483SSimon J. Gerraty * install-mk (MK_VERSION): 20190911 94349caa483SSimon J. Gerraty 94449caa483SSimon J. Gerraty * compiler.mk: set COMPILER_TYPE 94549caa483SSimon J. Gerraty 94649caa483SSimon J. Gerraty2019-07-17 Simon J Gerraty <sjg@beast.crufty.net> 94749caa483SSimon J. Gerraty 94849caa483SSimon J. Gerraty * install-mk (MK_VERSION): 20190704 94949caa483SSimon J. Gerraty 95049caa483SSimon J. Gerraty * sys/Darwin.mk: support for Objective-C and clang 95149caa483SSimon J. Gerraty 95249caa483SSimon J. Gerraty2019-05-30 Simon J Gerraty <sjg@beast.crufty.net> 95349caa483SSimon J. Gerraty 95449caa483SSimon J. Gerraty * dirdeps.mk: avoid insanely long command line when generating cache 95549caa483SSimon J. Gerraty 95649caa483SSimon J. Gerraty2019-05-23 Simon J Gerraty <sjg@beast.crufty.net> 95749caa483SSimon J. Gerraty 95849caa483SSimon J. Gerraty * install-mk (MK_VERSION): 20190505 95949caa483SSimon J. Gerraty 96049caa483SSimon J. Gerraty * whats.mk: handle corner case SHLIB defined but not LIB 96149caa483SSimon J. Gerraty 9622eae894cSSimon J. Gerraty2018-09-19 Simon J Gerraty <sjg@beast.crufty.net> 9632eae894cSSimon J. Gerraty 9642eae894cSSimon J. Gerraty * install-mk (MK_VERSION): 20180919 9652eae894cSSimon J. Gerraty 9662eae894cSSimon J. Gerraty * dirdeps-options.mk: .undef cannot handle var that expands to 9672eae894cSSimon J. Gerraty more than one var. 9682eae894cSSimon J. Gerraty 9692eae894cSSimon J. Gerraty2018-07-08 Simon J Gerraty <sjg@beast.crufty.net> 9702eae894cSSimon J. Gerraty 9712eae894cSSimon J. Gerraty * meta.stage.mk: allow wildcards in STAGE_FILES.* etc. 9722eae894cSSimon J. Gerraty 9732eae894cSSimon J. Gerraty2018-06-01 Simon J Gerraty <sjg@beast.crufty.net> 9742eae894cSSimon J. Gerraty 9752eae894cSSimon J. Gerraty * meta.autodep.mk: export META_FILES to avoid command line limit 9762eae894cSSimon J. Gerraty * gendirdeps.mk: if we have lots of .meta files put them in 9772eae894cSSimon J. Gerraty an @list 9782eae894cSSimon J. Gerraty 9792eae894cSSimon J. Gerraty2018-05-28 Simon J Gerraty <sjg@beast.crufty.net> 9802eae894cSSimon J. Gerraty 9812eae894cSSimon J. Gerraty * dirdeps-options.mk: use local.dirdeps-options.mk 9822eae894cSSimon J. Gerraty not local.dirdeps-option.mk 9832eae894cSSimon J. Gerraty 984494f7191SSimon J. Gerraty2018-04-20 Simon J Gerraty <sjg@beast.crufty.net> 985494f7191SSimon J. Gerraty 986494f7191SSimon J. Gerraty * install-mk (MK_VERSION): 20180420 987494f7191SSimon J. Gerraty * dirdeps.mk: include local.dirdeps-build.mk when .MAKE.LEVEL > 0 988494f7191SSimon J. Gerraty ie. we are building something. 989494f7191SSimon J. Gerraty 990494f7191SSimon J. Gerraty2018-04-14 Simon J Gerraty <sjg@beast.crufty.net> 991494f7191SSimon J. Gerraty 992494f7191SSimon J. Gerraty * FILES: add dirdeps-options.mk to deal with optional DIRDEPS. 993494f7191SSimon J. Gerraty 994494f7191SSimon J. Gerraty2018-04-05 Simon J Gerraty <sjg@beast.crufty.net> 995494f7191SSimon J. Gerraty 996494f7191SSimon J. Gerraty * install-mk (MK_VERSION): 20180405 997494f7191SSimon J. Gerraty 998494f7191SSimon J. Gerraty * ldorder.mk: describe how to use LDORDER_EXTERN_BARRIER 999494f7191SSimon J. Gerraty if needed. 1000494f7191SSimon J. Gerraty 100150d2e745SSimon J. Gerraty2018-01-18 Simon J Gerraty <sjg@beast.crufty.net> 100250d2e745SSimon J. Gerraty 100350d2e745SSimon J. Gerraty * install-mk (MK_VERSION): 20180118 100450d2e745SSimon J. Gerraty 100550d2e745SSimon J. Gerraty * ldorder.mk: let make compute correct link order 100650d2e745SSimon J. Gerraty 100750d2e745SSimon J. Gerraty2017-12-12 Simon J Gerraty <sjg@beast.crufty.net> 100850d2e745SSimon J. Gerraty 100950d2e745SSimon J. Gerraty * install-mk (MK_VERSION): 20171212 101050d2e745SSimon J. Gerraty 101150d2e745SSimon J. Gerraty * gendirdeps.mk: guard against bogus entries in GENDIRDEPS_FILTER 101250d2e745SSimon J. Gerraty 101350d2e745SSimon J. Gerraty2017-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 101450d2e745SSimon J. Gerraty 101550d2e745SSimon J. Gerraty * install-mk (MK_VERSION): 20171111 101650d2e745SSimon J. Gerraty 101750d2e745SSimon J. Gerraty * lib.mk: ensure META_NOECHO is set 101850d2e745SSimon J. Gerraty 1019e22fef7dSSimon J. Gerraty2017-10-25 Simon J. Gerraty <sjg@bad.crufty.net> 1020e22fef7dSSimon J. Gerraty 1021e22fef7dSSimon J. Gerraty * Allow for host32 on rare occasions. 1022e22fef7dSSimon J. Gerraty 1023e22fef7dSSimon J. Gerraty2017-10-18 Simon J. Gerraty <sjg@bad.crufty.net> 1024e22fef7dSSimon J. Gerraty 1025e22fef7dSSimon J. Gerraty * install-mk (MK_VERSION): 20171018 1026e22fef7dSSimon J. Gerraty 1027e22fef7dSSimon J. Gerraty * whats.mk: include what_thing in what_uuid to avoid problem 1028e22fef7dSSimon J. Gerraty when building multiple apps in the same directory. 1029e22fef7dSSimon J. Gerraty 1030e22fef7dSSimon J. Gerraty2017-08-12 Simon J. Gerraty <sjg@bad.crufty.net> 1031e22fef7dSSimon J. Gerraty 1032e22fef7dSSimon J. Gerraty * install-mk (MK_VERSION): 20170812 1033e22fef7dSSimon J. Gerraty 1034e22fef7dSSimon J. Gerraty * autoconf.mk: Use CONFIGURE_DEPS so Makefile can 1035e22fef7dSSimon J. Gerraty add dependencies for config.recheck and config.gen 1036e22fef7dSSimon J. Gerraty 10378695518cSSimon J. Gerraty2017-06-30 Simon J. Gerraty <sjg@bad.crufty.net> 10388695518cSSimon J. Gerraty 10398695518cSSimon J. Gerraty * install-mk (MK_VERSION): 20170630 10408695518cSSimon J. Gerraty 10418695518cSSimon J. Gerraty * meta.stage.mk: avoid triggering stage_* targets with nothing to do. 10428695518cSSimon J. Gerraty 10438695518cSSimon J. Gerraty2017-05-23 Simon J. Gerraty <sjg@bad.crufty.net> 10448695518cSSimon J. Gerraty 10458695518cSSimon J. Gerraty * meta2deps.py: take special care of '..' 10468695518cSSimon J. Gerraty 10478695518cSSimon J. Gerraty2017-05-15 Simon J. Gerraty <sjg@bad.crufty.net> 10488695518cSSimon J. Gerraty 10498695518cSSimon J. Gerraty * install-mk (MK_VERSION): 20170515 10508695518cSSimon J. Gerraty 10518695518cSSimon J. Gerraty * dirdeps.mk (DEP_EXPORT_VARS): on rare occasions it is 10528695518cSSimon J. Gerraty useful/necessary for a Makefile.depend file to export some knobs. 10538695518cSSimon J. Gerraty This is complicated when we are doing DIRDEPS_CACHE, so we will 10548695518cSSimon J. Gerraty handle export of any variables listed in DEP_EXPORT_VARS. 10558695518cSSimon J. Gerraty 1056cac6fd11SSimon J. Gerraty2017-05-08 Simon J. Gerraty <sjg@bad.crufty.net> 1057cac6fd11SSimon J. Gerraty 1058cac6fd11SSimon J. Gerraty * install-mk (MK_VERSION): 20170505 1059cac6fd11SSimon J. Gerraty 1060cac6fd11SSimon J. Gerraty * meta2deps.py: fix botched indenation. 1061cac6fd11SSimon J. Gerraty 1062cac6fd11SSimon J. Gerraty2017-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 1063cac6fd11SSimon J. Gerraty 1064cac6fd11SSimon J. Gerraty * sys/*.mk: Remove setting of MAKE it is unnecessary and 1065cac6fd11SSimon J. Gerraty in many cases wrong (basname rather than full path) 1066cac6fd11SSimon J. Gerraty 1067cac6fd11SSimon J. Gerraty * scripts.mk (SCRIPTSGROUPS): make this more like files.mk and inc.mk 1068cac6fd11SSimon J. Gerraty 1069cac6fd11SSimon J. Gerraty * init.mk: define realbuild to simplify logic in {lib,prog}.mk etc 1070cac6fd11SSimon J. Gerraty 1071cac6fd11SSimon J. Gerraty2017-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 1072cac6fd11SSimon J. Gerraty 1073cac6fd11SSimon J. Gerraty * install-mk (MK_VERSION): 20170501 1074cac6fd11SSimon J. Gerraty 1075cac6fd11SSimon J. Gerraty * doc.mk: fix typo in DOC_INSTALL_OWN 1076cac6fd11SSimon J. Gerraty 1077cac6fd11SSimon J. Gerraty * inc.mk: handle INCGROUPS similar to freebsd 1078cac6fd11SSimon J. Gerraty 1079cac6fd11SSimon J. Gerraty * files.mk: add something for files too 1080cac6fd11SSimon J. Gerraty 1081cac6fd11SSimon J. Gerraty * add staging logic to lib.mk prog.mk etc. 1082cac6fd11SSimon J. Gerraty 1083cac6fd11SSimon J. Gerraty2017-04-24 Simon J. Gerraty <sjg@bad.crufty.net> 1084cac6fd11SSimon J. Gerraty 1085cac6fd11SSimon J. Gerraty * install-mk (MK_VERSION): 20170424 1086cac6fd11SSimon J. Gerraty 1087cac6fd11SSimon J. Gerraty * dirdeps.mk: set NO_DIRDEPS when bootstrapping. 1088cac6fd11SSimon J. Gerraty also target of bootstrap-this when sed is needed should be ${_want:T} 1089cac6fd11SSimon J. Gerraty 1090e1cee40dSSimon J. Gerraty2017-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 1091e1cee40dSSimon J. Gerraty 1092e1cee40dSSimon J. Gerraty * install-mk (MK_VERSION): 20170418 1093e1cee40dSSimon J. Gerraty 1094e1cee40dSSimon J. Gerraty * auto.obj.mk: if using MAKEOBJDIRPREFIX check if it is a 1095e1cee40dSSimon J. Gerraty prefix match for .CURDIR - in which case .CURDIR *is* __objdir. 1096e1cee40dSSimon J. Gerraty 1097b46b9039SSimon J. Gerraty2017-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 1098b46b9039SSimon J. Gerraty 1099b46b9039SSimon J. Gerraty * install-mk (MK_VERSION): 20170401 1100b46b9039SSimon J. Gerraty 1101b46b9039SSimon J. Gerraty * meta2deps.py: add is_src so we can check if obj dependency 1102b46b9039SSimon J. Gerraty is also a src dependency. 1103b46b9039SSimon J. Gerraty 1104b46b9039SSimon J. Gerraty2017-03-26 Simon J. Gerraty <sjg@bad.crufty.net> 1105b46b9039SSimon J. Gerraty 1106b46b9039SSimon J. Gerraty * install-mk (MK_VERSION): 20170326 1107b46b9039SSimon J. Gerraty 1108b46b9039SSimon J. Gerraty * meta.stage.mk: do nothing if NO_STAGING is defined. 1109b46b9039SSimon J. Gerraty 1110b46b9039SSimon J. Gerraty2017-03-24 Simon J. Gerraty <sjg@bad.crufty.net> 1111b46b9039SSimon J. Gerraty 1112b46b9039SSimon J. Gerraty * auto.obj.mk: handle the case of __objdir=obj or obj.${MACHINE} etc. 1113b46b9039SSimon J. Gerraty 1114b46b9039SSimon J. Gerraty2017-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 1115b46b9039SSimon J. Gerraty 1116b46b9039SSimon J. Gerraty * mkopt.sh: treat WITH_*=NO like no; ie. WITHOUT_* 1117b46b9039SSimon J. Gerraty 11181ce939a7SSimon J. Gerraty2017-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 11191ce939a7SSimon J. Gerraty 11201ce939a7SSimon J. Gerraty * install-mk (MK_VERSION): 20170301 11211ce939a7SSimon J. Gerraty 11221ce939a7SSimon J. Gerraty * dirdeps.mk (_build_all_dirs): update this outside test for empty 11231ce939a7SSimon J. Gerraty DIRDEPS. 11241ce939a7SSimon J. Gerraty 11251ce939a7SSimon J. Gerraty * meta.stage.mk: allow multiple inclusion to the extent it makes 11261ce939a7SSimon J. Gerraty sense. 11271ce939a7SSimon J. Gerraty 11281ce939a7SSimon J. Gerraty2017-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 11291ce939a7SSimon J. Gerraty 11301ce939a7SSimon J. Gerraty * prog.mk (install_links): depends on realinstall 11311ce939a7SSimon J. Gerraty 11321ce939a7SSimon J. Gerraty2017-02-12 Simon J. Gerraty <sjg@bad.crufty.net> 11331ce939a7SSimon J. Gerraty 11341ce939a7SSimon J. Gerraty * install-mk (MK_VERSION): 20170212 11351ce939a7SSimon J. Gerraty 11361ce939a7SSimon J. Gerraty * dpadd.mk: avoid applying :T:R twice to DPLIBS entries 11371ce939a7SSimon J. Gerraty 11381ce939a7SSimon J. Gerraty2017-01-30 Simon J. Gerraty <sjg@bad.crufty.net> 11391ce939a7SSimon J. Gerraty 11401ce939a7SSimon J. Gerraty * install-mk (MK_VERSION): 20170130 11411ce939a7SSimon J. Gerraty 11421ce939a7SSimon J. Gerraty * dirdeps.mk: use :range if we can. 11431ce939a7SSimon J. Gerraty 11441ce939a7SSimon J. Gerraty * sys.vars.mk: provide M_cmpv if MAKE_VERSION >= 20170130 11451ce939a7SSimon J. Gerraty 11461ce939a7SSimon J. Gerraty * meta2deps.py: clean paths without using realpath() where possible. 11471ce939a7SSimon J. Gerraty fix sort_unique. 11481ce939a7SSimon J. Gerraty 114945447996SSimon J. Gerraty2016-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 115045447996SSimon J. Gerraty 115145447996SSimon J. Gerraty * install-mk (MK_VERSION): 20161212 115245447996SSimon J. Gerraty 115345447996SSimon J. Gerraty * meta2deps.py: set pid_cwd[pid] when we process 'C'hdir, 115445447996SSimon J. Gerraty rather than when we detect pid change. 115545447996SSimon J. Gerraty 115645447996SSimon J. Gerraty2016-12-07 Simon J. Gerraty <sjg@bad.crufty.net> 115745447996SSimon J. Gerraty 115845447996SSimon J. Gerraty * install-mk (MK_VERSION): 20161207 115945447996SSimon J. Gerraty 116045447996SSimon J. Gerraty * meta.stage.mk: add stage_as_and_symlink for staging packages. 116145447996SSimon J. Gerraty We build foo.tgz stage_as foo-${VERSION}.tgz but want to be able 116245447996SSimon J. Gerraty to use foo.tgz to reference the latest staged version - so we 116345447996SSimon J. Gerraty make foo.tgz a symlink to it. 116445447996SSimon J. Gerraty Using a target to do both operations ensures we stay in sync. 116545447996SSimon J. Gerraty 116645447996SSimon J. Gerraty2016-11-26 Simon J. Gerraty <sjg@bad.crufty.net> 116745447996SSimon J. Gerraty 116845447996SSimon J. Gerraty * install-mk (MK_VERSION): 20161126 116945447996SSimon J. Gerraty 117045447996SSimon J. Gerraty * dirdeps.mk: set DIRDEPS_CACHE before we include local.dirdeps.mk 117145447996SSimon J. Gerraty so it can add dependencies. 117245447996SSimon J. Gerraty 117345447996SSimon J. Gerraty2016-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 117445447996SSimon J. Gerraty 117545447996SSimon J. Gerraty * dirdeps.mk: set DEP_* before we expand .MAKE.DEPENDFILE_PREFERENCE 117645447996SSimon J. Gerraty do that they can influence the result correctly. 117745447996SSimon J. Gerraty 117845447996SSimon J. Gerraty * dirdeps.mk (${DIRDEPS_CACHE}): make sure we pass on TARGET_SPEC 117945447996SSimon J. Gerraty 118045447996SSimon J. Gerraty * dirdeps.mk: Add ONLY_TARGET_SPEC_LIST and NOT_TARGET_SPEC_LIST 118145447996SSimon J. Gerraty similar to ONLY_MACHINE_LIST and NOT_MACHINE_LIST 118245447996SSimon J. Gerraty 118345447996SSimon J. Gerraty2016-10-05 Simon J. Gerraty <sjg@bad.crufty.net> 118445447996SSimon J. Gerraty 118545447996SSimon J. Gerraty * dirdeps.mk: remove dependence on jot (normal situations anyway). 118645447996SSimon J. Gerraty Before we read another Makefile.depend* set DEP_* vars from 118745447996SSimon J. Gerraty _DEP_TARGET_SPEC in case it uses any of them with := 118845447996SSimon J. Gerraty When bootstrapping, trim any ,* from extention of chosen _src 118945447996SSimon J. Gerraty Makefile.depend* to get the machine value we subst for. 119045447996SSimon J. Gerraty 119145447996SSimon J. Gerraty2016-09-30 Simon J. Gerraty <sjg@bad.crufty.net> 119245447996SSimon J. Gerraty 119345447996SSimon J. Gerraty * dirdeps.mk: use TARGET_SPEC_VARS to qualify components added to 119445447996SSimon J. Gerraty DEP_SKIP_DIR and DEP_DIRDEPS_FILTER 119545447996SSimon J. Gerraty 119645447996SSimon J. Gerraty * sys.mk: extract some bits to sys.{debug,vars}.mk 119745447996SSimon J. Gerraty for easier re-use by others. 119845447996SSimon J. Gerraty 119945447996SSimon J. Gerraty2016-09-23 Simon Gerraty <sjg@sjg-mba13> 120045447996SSimon J. Gerraty 120145447996SSimon J. Gerraty * lib.mk: Use ${PICO} for extension for PIC objects. 120245447996SSimon J. Gerraty default to .pico (like NetBSD) safe on case insensitive filesystem. 120345447996SSimon J. Gerraty 120445447996SSimon J. Gerraty2016-08-19 Simon J. Gerraty <sjg@bad.crufty.net> 120545447996SSimon J. Gerraty 120645447996SSimon J. Gerraty * meta.sys.mk (META_COOKIE_TOUCH): use ${.OBJDIR}/${.TARGET:T} as default 120745447996SSimon J. Gerraty 120895e3ed2cSSimon J. Gerraty2016-08-15 Simon J. Gerraty <sjg@bad.crufty.net> 120995e3ed2cSSimon J. Gerraty 121095e3ed2cSSimon J. Gerraty * install-mk (MK_VERSION): 20160815 121195e3ed2cSSimon J. Gerraty 121295e3ed2cSSimon J. Gerraty * dirdeps.mk (.MAKE.META.IGNORE_FILTER): set filter to only 121395e3ed2cSSimon J. Gerraty consider Makefile.depend* when checking if DIRDEPS_CACHE is up-to-date. 121495e3ed2cSSimon J. Gerraty 121595e3ed2cSSimon J. Gerraty2016-08-13 Simon J. Gerraty <sjg@bad.crufty.net> 121695e3ed2cSSimon J. Gerraty 121795e3ed2cSSimon J. Gerraty * meta.sys.mk (.MAKE.META.IGNORE_PATHS): 121895e3ed2cSSimon J. Gerraty in meta mode we can ignore the mtime of makefiles 121995e3ed2cSSimon J. Gerraty 122095e3ed2cSSimon J. Gerraty2016-08-02 Simon J. Gerraty <sjg@bad.crufty.net> 122195e3ed2cSSimon J. Gerraty 122295e3ed2cSSimon J. Gerraty * install-mk (MK_VERSION): 20160802 122395e3ed2cSSimon J. Gerraty 122495e3ed2cSSimon J. Gerraty * lib.mk (libinstall): depends on beforinstall 122595e3ed2cSSimon J. Gerraty 122695e3ed2cSSimon J. Gerraty * prog.mk (proginstall): depends on beforinstall 122795e3ed2cSSimon J. Gerraty patch from Lauri Tirkkonen 122895e3ed2cSSimon J. Gerraty 122995e3ed2cSSimon J. Gerraty * dirdeps.mk (bootstrap): When bootstrapping; creat 123095e3ed2cSSimon J. Gerraty .MAKE.DEPENDFILE_DEFAULT and allow additional filtering via 123195e3ed2cSSimon J. Gerraty .MAKE.DEPENDFILE_BOOTSTRAP_SED 123295e3ed2cSSimon J. Gerraty 123395e3ed2cSSimon J. Gerraty * dirdeps.mk: move some comments to where they make sense. 123495e3ed2cSSimon J. Gerraty 123595e3ed2cSSimon J. Gerraty2016-07-27 Simon J. Gerraty <sjg@bad.crufty.net> 123695e3ed2cSSimon J. Gerraty 123795e3ed2cSSimon J. Gerraty * dirdeps.mk (DIRDEPS_CACHE): no dirname. 123895e3ed2cSSimon J. Gerraty 1239b778b302SSimon J. Gerraty2016-06-02 Simon J. Gerraty <sjg@bad.crufty.net> 1240b778b302SSimon J. Gerraty 1241b778b302SSimon J. Gerraty * install-mk (MK_VERSION): 20160602 1242b778b302SSimon J. Gerraty * meta.autodep.mk: when passing META_FILES to gendirdeps.mk 1243b778b302SSimon J. Gerraty do not apply :T to META_XTRAS 1244b778b302SSimon J. Gerraty patch from Bryan Drewery at FreeBSD.org. 1245b778b302SSimon J. Gerraty 1246b778b302SSimon J. Gerraty2016-05-30 Simon J. Gerraty <sjg@bad.crufty.net> 1247b778b302SSimon J. Gerraty 1248b778b302SSimon J. Gerraty * install-mk (MK_VERSION): 20160530 1249b778b302SSimon J. Gerraty * meta.stage.mk: we assume ${CLEANFILES} gets .NOPATH 1250b778b302SSimon J. Gerraty make it so. 1251b778b302SSimon J. Gerraty 1252e48f47ddSSimon J. Gerraty2016-05-12 Simon J. Gerraty <sjg@bad.crufty.net> 1253e48f47ddSSimon J. Gerraty 1254e48f47ddSSimon J. Gerraty * install-mk (MK_VERSION): 20160512 1255e48f47ddSSimon J. Gerraty 1256e48f47ddSSimon J. Gerraty * dpadd.mk: always include local.dpadd.mk if it exists 1257e48f47ddSSimon J. Gerraty remove some things that better belong in local.dpadd.mk 1258e48f47ddSSimon J. Gerraty skip INCLUDES_* for staged libs unless SRC_* defined. 1259e48f47ddSSimon J. Gerraty 1260e48f47ddSSimon J. Gerraty * own.mk: add INCLUDEDIR 1261e48f47ddSSimon J. Gerraty 1262e48f47ddSSimon J. Gerraty2016-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 1263e48f47ddSSimon J. Gerraty 1264e48f47ddSSimon J. Gerraty * dirdeps.mk: when doing -f dirdeps.mk if target suppies no 1265e48f47ddSSimon J. Gerraty TARGET_MACHINE - :E will be empty or match part of path, use 1266e48f47ddSSimon J. Gerraty ${MACHINE} 1267e48f47ddSSimon J. Gerraty 1268e48f47ddSSimon J. Gerraty2016-04-07 Simon J. Gerraty <sjg@bad.crufty.net> 1269e48f47ddSSimon J. Gerraty 1270e48f47ddSSimon J. Gerraty * meta.autodep.mk: issue a warning if UPDATE_DEPENDFILE=NO due to 1271e48f47ddSSimon J. Gerraty NO_FILEMON_COOKIE 1272e48f47ddSSimon J. Gerraty 1273e48f47ddSSimon J. Gerraty * dirdeps.mk: move the logic that allows for 1274e48f47ddSSimon J. Gerraty make -f dirdeps.mk some/dir.${TARGET_SPEC} 1275e48f47ddSSimon J. Gerraty inside the check for !target(_DIRDEP_USE) 1276e48f47ddSSimon J. Gerraty 1277e48f47ddSSimon J. Gerraty2016-04-04 Simon J. Gerraty <sjg@bad.crufty.net> 1278e48f47ddSSimon J. Gerraty 1279e48f47ddSSimon J. Gerraty * Use <> when including local*.mk and others which may exist 1280e48f47ddSSimon J. Gerraty elsewhere so that user can better control what they get. 1281e48f47ddSSimon J. Gerraty 1282e48f47ddSSimon J. Gerraty * meta.autodep.mk (NO_FILEMON_COOKIE): 1283e48f47ddSSimon J. Gerraty create a cookie if we ever build dir with nofilemon 1284e48f47ddSSimon J. Gerraty so that UPDATE_DEPENDFILE will be forced to NO until cleaned. 1285e48f47ddSSimon J. Gerraty 1286e48f47ddSSimon J. Gerraty2016-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 1287e48f47ddSSimon J. Gerraty 1288e48f47ddSSimon J. Gerraty * install-mk (MK_VERSION): 20160401 1289e48f47ddSSimon J. Gerraty 1290e48f47ddSSimon J. Gerraty * meta2deps.py: fix old print statement when debugging. 1291e48f47ddSSimon J. Gerraty 1292e48f47ddSSimon J. Gerraty * gendirdeps.mk: META2DEPS_CMD append M2D_EXCLUDES with -X 1293e48f47ddSSimon J. Gerraty patch from Bryan Drewery 1294e48f47ddSSimon J. Gerraty 1295e48f47ddSSimon J. Gerraty2016-03-22 Simon J. Gerraty <sjg@bad.crufty.net> 1296e48f47ddSSimon J. Gerraty 1297e48f47ddSSimon J. Gerraty * install-mk (MK_VERSION): 20160317 (St. Pats) 1298e48f47ddSSimon J. Gerraty 1299e48f47ddSSimon J. Gerraty * warnings.mk: g++ does not like -Wimplicit 1300e48f47ddSSimon J. Gerraty 1301e48f47ddSSimon J. Gerraty * sys.mk sys/*.mk lib.mk prog.mk: use CXX_SUFFIXES to handle the 1302e48f47ddSSimon J. Gerraty pelthora of common suffixes for C++ 1303e48f47ddSSimon J. Gerraty 1304e48f47ddSSimon J. Gerraty * lib.mk: use .So for shared objects 1305e48f47ddSSimon J. Gerraty 13063bebe729SSimon J. Gerraty2016-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 13073bebe729SSimon J. Gerraty 13083bebe729SSimon J. Gerraty * install-mk (MK_VERSION): 20160315 13093bebe729SSimon J. Gerraty 13103bebe729SSimon J. Gerraty * meta.stage.mk (LN_CP_SCRIPT): do not ln(1) if we have to chmod(1) 13113bebe729SSimon J. Gerraty normally only applies to scripts. 13123bebe729SSimon J. Gerraty 13133bebe729SSimon J. Gerraty * dirdeps.mk: NO_DIRDEPS_BELOW to supress DIRDEPS below RELDIR as 13143bebe729SSimon J. Gerraty well as outside it. 13153bebe729SSimon J. Gerraty 13163bebe729SSimon J. Gerraty2016-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 13173bebe729SSimon J. Gerraty 13183bebe729SSimon J. Gerraty * install-mk (MK_VERSION): 20160310 13193bebe729SSimon J. Gerraty 13203bebe729SSimon J. Gerraty * dirdeps.mk: use targets rather than a list to track DIRDEPS that 13213bebe729SSimon J. Gerraty we have processed; the list gets very inefficient as number of 13223bebe729SSimon J. Gerraty DIRDEPS gets large. 13233bebe729SSimon J. Gerraty 13243bebe729SSimon J. Gerraty * sys.dependfile.mk: fix comment wrt MACHINE 13253bebe729SSimon J. Gerraty 13263bebe729SSimon J. Gerraty * meta.autodep.mk: ignore staged DPADDs when bootstrapping. 13273bebe729SSimon J. Gerraty patch from Bryan Drewery 13283bebe729SSimon J. Gerraty 1329be19d90bSSimon J. Gerraty2016-03-02 Simon J. Gerraty <sjg@bad.crufty.net> 1330be19d90bSSimon J. Gerraty 1331be19d90bSSimon J. Gerraty * meta2deps.sh: don't ignore subdirs. 1332be19d90bSSimon J. Gerraty patch from Bryan Drewery 1333be19d90bSSimon J. Gerraty 1334be19d90bSSimon J. Gerraty2016-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 1335be19d90bSSimon J. Gerraty 1336be19d90bSSimon J. Gerraty * install-mk (MK_VERSION): 20160226 1337be19d90bSSimon J. Gerraty 1338be19d90bSSimon J. Gerraty * gendirdeps.mk: mark _DEPENDFILE .NOMETA 1339be19d90bSSimon J. Gerraty 1340be19d90bSSimon J. Gerraty2016-02-20 Simon J. Gerraty <sjg@bad.crufty.net> 1341be19d90bSSimon J. Gerraty 1342be19d90bSSimon J. Gerraty * dirdeps.mk: we shouldn't normally include .depend but if we do 1343be19d90bSSimon J. Gerraty use .dinclude if we can. 1344be19d90bSSimon J. Gerraty 1345be19d90bSSimon J. Gerraty2016-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 1346be19d90bSSimon J. Gerraty 1347be19d90bSSimon J. Gerraty * install-mk (MK_VERSION): 20160218 1348be19d90bSSimon J. Gerraty * sys.clean-env.mk: with recent change to Var_Subst() 1349be19d90bSSimon J. Gerraty we cannot use the '$$' trick, but .export-literal does the job 1350be19d90bSSimon J. Gerraty we need. 1351be19d90bSSimon J. Gerraty * auto.dep.mk: make use .dinclude if we can. 1352be19d90bSSimon J. Gerraty 1353be19d90bSSimon J. Gerraty 1354be19d90bSSimon J. Gerraty2016-02-05 Simon J. Gerraty <sjg@bad.crufty.net> 1355be19d90bSSimon J. Gerraty 1356be19d90bSSimon J. Gerraty * dirdeps.mk: 1357be19d90bSSimon J. Gerraty Add _build_all_dirs such that local.dirdeps.mk can 1358be19d90bSSimon J. Gerraty add fully qualified dirs to it. 1359be19d90bSSimon J. Gerraty These will be built normally but the current 1360be19d90bSSimon J. Gerraty DEP_RELDIR will not depend on then (to avoid cycles). 1361be19d90bSSimon J. Gerraty This makes it easy to hook things like unit-tests into build. 1362be19d90bSSimon J. Gerraty 1363be19d90bSSimon J. Gerraty 1364be19d90bSSimon J. Gerraty2016-01-21 Simon J. Gerraty <sjg@bad.crufty.net> 1365be19d90bSSimon J. Gerraty 1366be19d90bSSimon J. Gerraty * dirdeps.mk: add bootstrap-empty 1367be19d90bSSimon J. Gerraty 13686e050540SSimon J. Gerraty2015-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 13696e050540SSimon J. Gerraty 13706e050540SSimon J. Gerraty * install-mk (MK_VERSION): 20151212 13716e050540SSimon J. Gerraty * auto.obj.mk: do not require MAKEOBJDIRPREFIX to exist. 13726e050540SSimon J. Gerraty only apply :tA to __objdir when comparing to .OBJDIR 13736e050540SSimon J. Gerraty 1374ac3446e9SSimon J. Gerraty2015-11-14 Simon J. Gerraty <sjg@bad.crufty.net> 1375ac3446e9SSimon J. Gerraty 1376ac3446e9SSimon J. Gerraty * install-mk (MK_VERSION): 20151111 1377ac3446e9SSimon J. Gerraty 1378ac3446e9SSimon J. Gerraty * meta.sys.mk: include sys.dependfile.mk 1379ac3446e9SSimon J. Gerraty 1380ac3446e9SSimon J. Gerraty * sys.mk (OPTIONS_DEFAULT_NO): use options.mk 1381ac3446e9SSimon J. Gerraty to set MK_AUTO_OBJ and MK_DIRDEPS_BUILD 1382ac3446e9SSimon J. Gerraty include local.sys.env.mk early 1383ac3446e9SSimon J. Gerraty include local.sys.mk later 1384ac3446e9SSimon J. Gerraty 1385ac3446e9SSimon J. Gerraty * own.mk (OPTIONS_DEFAULT_NO): AUTO_OBJ etc moved to sys.mk 1386ac3446e9SSimon J. Gerraty 1387ac3446e9SSimon J. Gerraty2015-11-13 Simon J. Gerraty <sjg@bad.crufty.net> 1388ac3446e9SSimon J. Gerraty 1389ac3446e9SSimon J. Gerraty * meta.sys.mk (META_COOKIE_TOUCH): 1390ac3446e9SSimon J. Gerraty add ${META_COOKIE_TOUCH} to the end of scripts to touch cookie 1391ac3446e9SSimon J. Gerraty 1392ac3446e9SSimon J. Gerraty * meta.stage.mk: stage_libs should ignore SYMLINKS. 1393ac3446e9SSimon J. Gerraty 1394ac3446e9SSimon J. Gerraty2015-10-23 Simon J. Gerraty <sjg@bad.crufty.net> 1395ac3446e9SSimon J. Gerraty 1396ac3446e9SSimon J. Gerraty * install-mk (MK_VERSION): 20151022 1397ac3446e9SSimon J. Gerraty 1398ac3446e9SSimon J. Gerraty * sys.mk: BSD/OS does not have 'type' as a shell builtin. 1399ac3446e9SSimon J. Gerraty 14004c620fe5SSimon J. Gerraty2015-10-20 Simon J. Gerraty <sjg@bad.crufty.net> 14014c620fe5SSimon J. Gerraty 14024c620fe5SSimon J. Gerraty * install-mk (MK_VERSION): 20151020 14034c620fe5SSimon J. Gerraty 14044c620fe5SSimon J. Gerraty * dirdeps.mk: Add logic for 14054c620fe5SSimon J. Gerraty make -f dirdeps.mk some/dir.${TARGET_SPEC} 14064c620fe5SSimon J. Gerraty 14074c620fe5SSimon J. Gerraty2015-10-14 Simon J. Gerraty <sjg@bad.crufty.net> 14084c620fe5SSimon J. Gerraty 14094c620fe5SSimon J. Gerraty * install-mk (MK_VERSION): 20151010 14104c620fe5SSimon J. Gerraty 14114c620fe5SSimon J. Gerraty2015-10-02 Simon J. Gerraty <sjg@bad.crufty.net> 14124c620fe5SSimon J. Gerraty 14134c620fe5SSimon J. Gerraty * meta.stage.mk: use staging: ${STAGE_TARGETS:... 14144c620fe5SSimon J. Gerraty to have stage_lins run last in non-jobs mode. 14154c620fe5SSimon J. Gerraty Use .ORDER only for jobs mode. 14164c620fe5SSimon J. Gerraty 14174c620fe5SSimon J. Gerraty2015-09-02 Simon J. Gerraty <sjg@bad.crufty.net> 14184c620fe5SSimon J. Gerraty 14194c620fe5SSimon J. Gerraty * rst2htm.mk: allow for per target flags etc. 14204c620fe5SSimon J. Gerraty 14214c620fe5SSimon J. Gerraty2015-09-01 Simon J. Gerraty <sjg@bad.crufty.net> 14224c620fe5SSimon J. Gerraty 14234c620fe5SSimon J. Gerraty * install-mk (MK_VERSION): 20150901 14244c620fe5SSimon J. Gerraty 14254c620fe5SSimon J. Gerraty * doc.mk: create dir if needed use DOC_INSTALL_OWN 14264c620fe5SSimon J. Gerraty 14274c620fe5SSimon J. Gerraty2015-06-15 Simon J. Gerraty <sjg@bad.crufty.net> 14284c620fe5SSimon J. Gerraty 14294c620fe5SSimon J. Gerraty * install-mk (MK_VERSION): 20150615 14304c620fe5SSimon J. Gerraty 14314c620fe5SSimon J. Gerraty * auto.obj.mk: allow use of MAKEOBJDIRPREFIX too. 14324c620fe5SSimon J. Gerraty Follow make's normal precedence rules. 14334c620fe5SSimon J. Gerraty 14344c620fe5SSimon J. Gerraty * gendirdeps.mk: allow customization of the header. 14354c620fe5SSimon J. Gerraty eg. for FreeBSD: 14364c620fe5SSimon J. Gerraty GENDIRDEPS_HEADER= echo '\# ${FreeBSD:L:@v@$$$v$$ @:M*F*}'; 14374c620fe5SSimon J. Gerraty 14384c620fe5SSimon J. Gerraty * meta.autodep.mk: ignore dirdeps.cache* 14394c620fe5SSimon J. Gerraty 14404c620fe5SSimon J. Gerraty * meta.stage.mk: when bootstrapping options it can be handy to 14414c620fe5SSimon J. Gerraty throw warnings rather than errors for staging conflicts. 14424c620fe5SSimon J. Gerraty 14434c620fe5SSimon J. Gerraty * meta.sys.mk: include local.meta.sys.mk for customization 14444c620fe5SSimon J. Gerraty 1445128a4105SSimon J. Gerraty2015-06-06 Simon J. Gerraty <sjg@bad.crufty.net> 1446128a4105SSimon J. Gerraty 1447128a4105SSimon J. Gerraty * install-mk (MK_VERSION): 20150606 1448128a4105SSimon J. Gerraty 1449128a4105SSimon J. Gerraty * dirdeps.mk: don't rely on manually maintained Makefile.depend 1450128a4105SSimon J. Gerraty to set DEP_RELDIR and reset DIRDEPS. 1451128a4105SSimon J. Gerraty By setting DEP_RELDIR ourselves we can skip :tA 1452128a4105SSimon J. Gerraty 1453128a4105SSimon J. Gerraty * gendirdeps.mk: skip setting DEP_RELDIR. 1454128a4105SSimon J. Gerraty 1455128a4105SSimon J. Gerraty2015-05-24 Simon J. Gerraty <sjg@bad.crufty.net> 1456128a4105SSimon J. Gerraty 1457128a4105SSimon J. Gerraty * dirdeps.mk: avoid wildcards like make(bootstrap*) 1458128a4105SSimon J. Gerraty 1459128a4105SSimon J. Gerraty2015-05-20 Simon J. Gerraty <sjg@bad.crufty.net> 1460128a4105SSimon J. Gerraty 1461128a4105SSimon J. Gerraty * install-mk (MK_VERSION): 20150520 1462128a4105SSimon J. Gerraty 1463128a4105SSimon J. Gerraty * dirdeps.mk: when we are building dirdeps cache file we *want* 1464128a4105SSimon J. Gerraty meta_oodate to look at all the Makefile.depend files, so 1465128a4105SSimon J. Gerraty set .MAKE.DEPENDFILE to something that won't match. 1466128a4105SSimon J. Gerraty 1467128a4105SSimon J. Gerraty * meta.stage.mk: for STAGE_AS_* basename of file may not be unique 1468128a4105SSimon J. Gerraty so first use absolute path as key. 1469128a4105SSimon J. Gerraty Also skip staging at level 0. 1470128a4105SSimon J. Gerraty 147128a6bc81SSimon J. Gerraty2015-04-30 Simon J. Gerraty <sjg@bad.crufty.net> 147228a6bc81SSimon J. Gerraty 147328a6bc81SSimon J. Gerraty * install-mk (MK_VERSION): 20150430 147428a6bc81SSimon J. Gerraty 147528a6bc81SSimon J. Gerraty * dirdeps.mk: fix _count_dirdeps for non-cache case. 147628a6bc81SSimon J. Gerraty 1477db29cad8SSimon J. Gerraty2015-04-16 Simon J. Gerraty <sjg@bad.crufty.net> 1478db29cad8SSimon J. Gerraty 1479db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20150411 1480db29cad8SSimon J. Gerraty bump version 1481db29cad8SSimon J. Gerraty 1482db29cad8SSimon J. Gerraty * own.mk: put AUTO_OBJ in OPTIONS_DEFAULT_NO rather than YES. 1483db29cad8SSimon J. Gerraty it is here mainly for documentation purposes, since 1484db29cad8SSimon J. Gerraty if using auto.obj.mk it is better done via sys.mk 1485db29cad8SSimon J. Gerraty 1486db29cad8SSimon J. Gerraty2015-04-01 Simon J. Gerraty <sjg@bad.crufty.net> 1487db29cad8SSimon J. Gerraty 1488db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20150401 1489db29cad8SSimon J. Gerraty 1490db29cad8SSimon J. Gerraty * meta2deps.sh: support @list 1491db29cad8SSimon J. Gerraty 1492db29cad8SSimon J. Gerraty * meta2deps.py: updates from Juniper 1493db29cad8SSimon J. Gerraty o add EXCLUDES 1494db29cad8SSimon J. Gerraty o skip bogus input files. 1495db29cad8SSimon J. Gerraty o treat 'M' and 'L' as both an 'R' and a 'W' 1496db29cad8SSimon J. Gerraty 1497db29cad8SSimon J. Gerraty2015-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 1498db29cad8SSimon J. Gerraty 1499db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20150303 1500db29cad8SSimon J. Gerraty 1501db29cad8SSimon J. Gerraty * dirdeps.mk: if MK_DIRDEPS_CACHE is yes, use dirdeps-cache 1502db29cad8SSimon J. Gerraty which is built via sub-make so we have a .meta file to tell if 1503db29cad8SSimon J. Gerraty it is out-of-date. 1504db29cad8SSimon J. Gerraty The dirdeps-cache contains the same dependency rules that we 1505db29cad8SSimon J. Gerraty normaly construct on the fly. 1506db29cad8SSimon J. Gerraty This adds a few seconds overhead when the cache is out of date, 1507db29cad8SSimon J. Gerraty but for a large target, the savings can be significant (10-20min). 1508db29cad8SSimon J. Gerraty 1509db29cad8SSimon J. Gerraty2014-11-18 Simon J. Gerraty <sjg@bad.crufty.net> 1510db29cad8SSimon J. Gerraty 1511db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20141118 1512db29cad8SSimon J. Gerraty 1513db29cad8SSimon J. Gerraty * meta.stage.mk: add stale_staged 1514db29cad8SSimon J. Gerraty 1515db29cad8SSimon J. Gerraty * dirdeps.mk (_DIRDEP_USE_LEVEL): allow this to be tweaked 1516db29cad8SSimon J. Gerraty only useful under very rare conditions such as 1517db29cad8SSimon J. Gerraty FreeBSD's make universe. 1518db29cad8SSimon J. Gerraty 1519db29cad8SSimon J. Gerraty * auto.obj.mk: Allow MK_AUTO_OBJ to set MKOBJDIRS=auto 1520db29cad8SSimon J. Gerraty 1521db29cad8SSimon J. Gerraty2014-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 1522db29cad8SSimon J. Gerraty 1523db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20141111 1524db29cad8SSimon J. Gerraty 1525db29cad8SSimon J. Gerraty * mkopt.sh: use consistent semantics for _mk_opt and _mk_opts 1526db29cad8SSimon J. Gerraty 1527db29cad8SSimon J. Gerraty2014-11-09 Simon J. Gerraty <sjg@bad.crufty.net> 1528db29cad8SSimon J. Gerraty 1529db29cad8SSimon J. Gerraty * FILES: include mkopt.sh which allows handling options in shell 1530db29cad8SSimon J. Gerraty scripts in a manner compatible with options.mk 1531db29cad8SSimon J. Gerraty 1532db29cad8SSimon J. Gerraty2014-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 1533db29cad8SSimon J. Gerraty 1534db29cad8SSimon J. Gerraty * meta.stage.mk: ensure only _STAGED_DIRS under objroot are used 1535db29cad8SSimon J. Gerraty for GENDIRDEPS_FILTER to avoid surprises. 1536db29cad8SSimon J. Gerraty 1537db29cad8SSimon J. Gerraty2014-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 1538db29cad8SSimon J. Gerraty 1539db29cad8SSimon J. Gerraty * dirdeps.mk (NSkipHostDir): this needs SRCTOP prepended since by 1540db29cad8SSimon J. Gerraty the time it is applied to __depdirs they have. 1541db29cad8SSimon J. Gerraty 1542db29cad8SSimon J. Gerraty * dirdeps.mk fix filtering of _machines since M_dep_qual_fixes 1543db29cad8SSimon J. Gerraty expects patterns like *.${MACHINE} 1544db29cad8SSimon J. Gerraty 1545db29cad8SSimon J. Gerraty * cython.mk (pyprefix?): use pyprefix to find python bits 1546db29cad8SSimon J. Gerraty since prefix might be something else (where we install our 1547db29cad8SSimon J. Gerraty stuff) 1548db29cad8SSimon J. Gerraty 1549db29cad8SSimon J. Gerraty2014-09-11 Simon J. Gerraty <sjg@bad.crufty.net> 1550db29cad8SSimon J. Gerraty 1551db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20140911 1552db29cad8SSimon J. Gerraty 1553db29cad8SSimon J. Gerraty * dirdeps.mk: add bootstrap target to simplify adding support for 1554db29cad8SSimon J. Gerraty new MACHINE. 1555db29cad8SSimon J. Gerraty 1556db29cad8SSimon J. Gerraty2014-09-01 Simon J. Gerraty <sjg@bad.crufty.net> 1557db29cad8SSimon J. Gerraty 1558db29cad8SSimon J. Gerraty * gendirdeps.mk: Add handling of GENDIRDEPS_FILTER_DIR_VARS and 1559db29cad8SSimon J. Gerraty GENDIRDEPS_FILTER_VARS to make it easier to produce sharable 1560db29cad8SSimon J. Gerraty Makefile.depend files. 1561db29cad8SSimon J. Gerraty 1562db29cad8SSimon J. Gerraty2014-08-28 Simon J. Gerraty <sjg@bad.crufty.net> 1563db29cad8SSimon J. Gerraty 1564db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20140828 1565db29cad8SSimon J. Gerraty 1566db29cad8SSimon J. Gerraty * cython.mk: capture logic for building python extension modules 1567db29cad8SSimon J. Gerraty with Cython. 1568db29cad8SSimon J. Gerraty 1569db29cad8SSimon J. Gerraty2014-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 1570db29cad8SSimon J. Gerraty 1571db29cad8SSimon J. Gerraty * meta.stage.mk (_STAGE_AS_BASENAME_USE): Add StageAs variant 1572db29cad8SSimon J. Gerraty 1573db29cad8SSimon J. Gerraty2014-08-02 Simon J. Gerraty <sjg@bad.crufty.net> 1574db29cad8SSimon J. Gerraty 1575db29cad8SSimon J. Gerraty * install-mk (MK_VERSION): 20140801 1576db29cad8SSimon J. Gerraty 1577db29cad8SSimon J. Gerraty * dep.mk: use explicit MKDEP_MK rather than overload MKDEP to 1578db29cad8SSimon J. Gerraty identify the autodep.mk variant. 1579db29cad8SSimon J. Gerraty 1580db29cad8SSimon J. Gerraty * sys.dependfile.mk: delete .MAKE.DEPENDFILE if its 1581db29cad8SSimon J. Gerraty initial value does not match .MAKE.DEPENDFILE_PREFIX 1582db29cad8SSimon J. Gerraty 1583db29cad8SSimon J. Gerraty * meta.autodep.mk: if _bootstrap_dirdeps add RELDIR to DIRDEPS 1584db29cad8SSimon J. Gerraty 15855bcb7424SSimon J. Gerraty2014-05-22 Simon J. Gerraty <sjg@bad.crufty.net> 15865bcb7424SSimon J. Gerraty 15875bcb7424SSimon J. Gerraty * install-mk (MK_VERSION): 20140522 15885bcb7424SSimon J. Gerraty 15895bcb7424SSimon J. Gerraty * lib.mk: use CC to link shlib for linux too 15905bcb7424SSimon J. Gerraty patch from Brendan MacDonell 15915bcb7424SSimon J. Gerraty 15925bcb7424SSimon J. Gerraty2014-05-05 Simon J. Gerraty <sjg@bad.crufty.net> 15935bcb7424SSimon J. Gerraty 15945bcb7424SSimon J. Gerraty * meta.autodep.mk: add _reldir_{finish,failed} for gathering stats 15955bcb7424SSimon J. Gerraty if WITH_META_STATS is defined. 15965bcb7424SSimon J. Gerraty 15975bcb7424SSimon J. Gerraty2014-05-02 Simon J. Gerraty <sjg@bad.crufty.net> 15985bcb7424SSimon J. Gerraty 15995bcb7424SSimon J. Gerraty * dirdeps.mk: accept -DWITHOUT_DIRDEPS (same a as -DNO_DIRDEPS) 16005bcb7424SSimon J. Gerraty to supress dirdeps outside of .CURDIR. 16015bcb7424SSimon J. Gerraty 16025bcb7424SSimon J. Gerraty2014-04-05 Simon J. Gerraty <sjg@bad.crufty.net> 16035bcb7424SSimon J. Gerraty 16045bcb7424SSimon J. Gerraty * Fix spelling errors - patch from Pedro Giffuni 16055bcb7424SSimon J. Gerraty 16065bcb7424SSimon J. Gerraty2014-03-14 Simon J. Gerraty <sjg@bad.crufty.net> 16075bcb7424SSimon J. Gerraty 16085bcb7424SSimon J. Gerraty * install-mk (MK_VERSION): 20140314 16095bcb7424SSimon J. Gerraty 16105bcb7424SSimon J. Gerraty * dirdeps.mk (beforedirdeps): a handy hook 16115bcb7424SSimon J. Gerraty 16125bcb7424SSimon J. Gerraty * dirdeps.mk (DIRDEP_MAKE): allow the actual command we run 16135bcb7424SSimon J. Gerraty to visit leaf dirs to be intercepted (eg. for distributed 16145bcb7424SSimon J. Gerraty build). 16155bcb7424SSimon J. Gerraty 16165bcb7424SSimon J. Gerraty * dirdeps.mk (__depdirs): ensure // don't sneak in 16175bcb7424SSimon J. Gerraty 16185bcb7424SSimon J. Gerraty * gendirdeps.mk (DIRDEPS): ensure // don't sneak in 16195bcb7424SSimon J. Gerraty 16205bcb7424SSimon J. Gerraty 16215bcb7424SSimon J. Gerraty2014-02-21 Simon J. Gerraty <sjg@bad.crufty.net> 16225bcb7424SSimon J. Gerraty 16235bcb7424SSimon J. Gerraty * rst2htm.mk (RST2PDF): add support for rst2pdf 16245bcb7424SSimon J. Gerraty 16255bcb7424SSimon J. Gerraty2014-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 16265bcb7424SSimon J. Gerraty 16275bcb7424SSimon J. Gerraty * install-mk (MK_VERSION): bump version 16285bcb7424SSimon J. Gerraty * dirdeps.mk (_last_dependfile): use .INCLUDEDFROMFILE if 16295bcb7424SSimon J. Gerraty available. 16305bcb7424SSimon J. Gerraty 16315bcb7424SSimon J. Gerraty2014-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 16325bcb7424SSimon J. Gerraty 16335bcb7424SSimon J. Gerraty * options.mk: avoid :U so this isn't bmake dependent 16345bcb7424SSimon J. Gerraty 16355bcb7424SSimon J. Gerraty2014-02-09 Simon J. Gerraty <sjg@bad.crufty.net> 16365bcb7424SSimon J. Gerraty 16375bcb7424SSimon J. Gerraty * options.mk: cleanup and simplify semanitcs 16385bcb7424SSimon J. Gerraty NO_* dominates all, if both WITH_* and WITHOUT_* 16395bcb7424SSimon J. Gerraty are defined then result is DOMINATE_* which defaults to "no". 16405bcb7424SSimon J. Gerraty Ie. WITHOUT_ normally wins. 16415bcb7424SSimon J. Gerraty 16420dede8b0SSimon J. Gerraty2013-12-12 Simon J. Gerraty <sjg@bad.crufty.net> 16430dede8b0SSimon J. Gerraty 16440dede8b0SSimon J. Gerraty * install-mk (MK_VERSION): bump version 16450dede8b0SSimon J. Gerraty * meta2deps.py: convert to print function for python3 compat. 16460dede8b0SSimon J. Gerraty we also need to open files with mode 'r' rather than 'rb' 16470dede8b0SSimon J. Gerraty otherwise we get bytes instead of strings. 16480dede8b0SSimon J. Gerraty 16490dede8b0SSimon J. Gerraty2013-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 16500dede8b0SSimon J. Gerraty 16510dede8b0SSimon J. Gerraty * install-mk (MK_VERSION): bump version 16520dede8b0SSimon J. Gerraty 16530dede8b0SSimon J. Gerraty * dirdeps.mk: when TARGET_SPEC_VARS is more than just MACHINE 16540dede8b0SSimon J. Gerraty apply the same filtering (M_dep_qual_fixes) when setting _machines 16550dede8b0SSimon J. Gerraty as _build_dirs. 16560dede8b0SSimon J. Gerraty Also fix the filtering of Makefile.depend files - for reporting 16570dede8b0SSimon J. Gerraty what we are looking for (M_dep_qual_fixes can get confused by 16580dede8b0SSimon J. Gerraty Makefile.depend) 16590dede8b0SSimon J. Gerraty Add some more debug info. 16600dede8b0SSimon J. Gerraty 16611bbe5942SSimon J. Gerraty2013-09-04 Simon J. Gerraty <sjg@bad.crufty.net> 16621bbe5942SSimon J. Gerraty 16631bbe5942SSimon J. Gerraty * gendirdeps.mk (_objtops): fix typo also 16641bbe5942SSimon J. Gerraty while processing M2D_OBJROOTS to gather qualdir_list 16651bbe5942SSimon J. Gerraty qualify $ql with loop iterator to ensure correct results. 16661bbe5942SSimon J. Gerraty 16671bbe5942SSimon J. Gerraty2013-08-01 Simon J. Gerraty <sjg@bad.crufty.net> 16681bbe5942SSimon J. Gerraty 16691bbe5942SSimon J. Gerraty * install-mk (MK_VERSION): 20130801 16701bbe5942SSimon J. Gerraty * libs.mk: update to match progs.mk 16711bbe5942SSimon J. Gerraty 167251ee2c1cSSimon J. Gerraty2013-07-26 Simon J. Gerraty <sjg@bad.crufty.net> 167351ee2c1cSSimon J. Gerraty 167451ee2c1cSSimon J. Gerraty * install-mk (MK_VERSION): 20130726 167551ee2c1cSSimon J. Gerraty some updates from Juniper and FreeBSD 167651ee2c1cSSimon J. Gerraty o meta2deps.py: indicate file and line number when we hit parse 167751ee2c1cSSimon J. Gerraty errors 167851ee2c1cSSimon J. Gerraty also allow @file to provide huge list of .meta files. 167951ee2c1cSSimon J. Gerraty * meta2deps.py: add try_parse() to cleanup the above. 168051ee2c1cSSimon J. Gerraty 168151ee2c1cSSimon J. Gerraty2013-07-16 Simon J. Gerraty <sjg@bad.crufty.net> 168251ee2c1cSSimon J. Gerraty 168351ee2c1cSSimon J. Gerraty * install-mk (MK_VERSION): 20130716 168451ee2c1cSSimon J. Gerraty * own.mk: add GPROG as an option 168551ee2c1cSSimon J. Gerraty * prog.mk: honor MK_GPROF==yes 168651ee2c1cSSimon J. Gerraty 168752d86256SSimon J. Gerraty2013-05-10 Simon J. Gerraty <sjg@bad.crufty.net> 168852d86256SSimon J. Gerraty 168952d86256SSimon J. Gerraty * install-mk (MK_VERSION): 20130505 169052d86256SSimon J. Gerraty * gendirdeps.mk, meta2deps.py, meta2deps.sh: handle $TARGET_SPEC 169152d86256SSimon J. Gerraty for when $MACHINE isn't enough for objdir distinction. 169252d86256SSimon J. Gerraty Bring meta2deps.sh closer to par with meta2deps.py. 169352d86256SSimon J. Gerraty 169452d86256SSimon J. Gerraty2013-04-18 Simon J. Gerraty <sjg@bad.crufty.net> 169552d86256SSimon J. Gerraty 169652d86256SSimon J. Gerraty * meta.stage.mk: set INSTALL to STAGE_INSTALL when making 'all' 169752d86256SSimon J. Gerraty also if the target 'beforeinstall' exists, make it depend on 169852d86256SSimon J. Gerraty .dirdep (incase it uses STAGE_INSTALL). 169952d86256SSimon J. Gerraty 170052d86256SSimon J. Gerraty2013-04-17 Simon J. Gerraty <sjg@bad.crufty.net> 170152d86256SSimon J. Gerraty 170252d86256SSimon J. Gerraty * install-mk (MK_VERSION): 20130401 ;-) 170352d86256SSimon J. Gerraty * meta.stage.mk (STAGE_INSTALL_SH): add stage-install.sh as 170452d86256SSimon J. Gerraty wrapper around install(1). 170552d86256SSimon J. Gerraty * options.mk (OPTION_PREFIX): Allow a prefix other than MK_ 170652d86256SSimon J. Gerraty 17071748de26SSimon J. Gerraty2013-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 17081748de26SSimon J. Gerraty 17091748de26SSimon J. Gerraty * meta2deps.py (MetaFile.__init__): ensure self.cwd is initialized. 17101748de26SSimon J. Gerraty * install-mk (MK_VERSION): bump version 17111748de26SSimon J. Gerraty 17121748de26SSimon J. Gerraty2013-03-21 Simon J. Gerraty <sjg@bad.crufty.net> 17131748de26SSimon J. Gerraty 17141748de26SSimon J. Gerraty * install-mk (MK_VERSION): bump version 17151748de26SSimon J. Gerraty * gendirdeps.mk: do not apply :tA to DPADD entries, since we lose 17161748de26SSimon J. Gerraty any trailing /., rather apply :tA only when needed. 17171748de26SSimon J. Gerraty * gendirdeps.mk: better mimic meta2deps handling of .dirdep files. 17181748de26SSimon J. Gerraty * meta.stage.mk (LN_CP_SCRIPT): Add LnCp to do the ln||cp dance 17191748de26SSimon J. Gerraty consistently. 17201748de26SSimon J. Gerraty * dirdeps.mk: better describe the dance in sys.mk for TARGET_SPEC. 17211748de26SSimon J. Gerraty 17221748de26SSimon J. Gerraty2013-03-18 Simon J. Gerraty <sjg@bad.crufty.net> 17231748de26SSimon J. Gerraty 17241748de26SSimon J. Gerraty * gendirdeps.mk: revert the dance around .MAKE.DEPENDFILE_DEFAULT 17251748de26SSimon J. Gerraty it is simpler to just not update when say building for "host" 17261748de26SSimon J. Gerraty (where we know we apply filters to DIRDEPS), and using a 17271748de26SSimon J. Gerraty non-machine qualified dependfile. 17281748de26SSimon J. Gerraty 17291748de26SSimon J. Gerraty2013-03-16 Simon J. Gerraty <sjg@bad.crufty.net> 17301748de26SSimon J. Gerraty 17311748de26SSimon J. Gerraty * dirdeps.mk: improve DIRDEPS filtering by allowing DEP_SKIP_DIR 17321748de26SSimon J. Gerraty and DEP_DIRDEPS_FILTER to vary by DEP_MACHINE and DEP_TARGET_SPEC 17331748de26SSimon J. Gerraty * gendirdeps.mk: ensure _objroot has trailing / if it needs it. 17341748de26SSimon J. Gerraty * meta2deps.py: if machine is "host", then also trim 17351748de26SSimon J. Gerraty self.host_target from any OBJROOTS. 17361748de26SSimon J. Gerraty 17371748de26SSimon J. Gerraty 17381748de26SSimon J. Gerraty2013-03-11 Simon J. Gerraty <sjg@bad.crufty.net> 17391748de26SSimon J. Gerraty 17401748de26SSimon J. Gerraty * gendirdeps.mk: if .MAKE.DEPENDFILE_DEFAULT is not machine 17411748de26SSimon J. Gerraty qualified but _DEPENDFILE is, and .MAKE.DEPENDFILE_DEFAULT exists 17421748de26SSimon J. Gerraty but _DEPENDFILE does not, compare the new _DEPENDFILE against 17431748de26SSimon J. Gerraty .MAKE.DEPENDFILE_DEFAULT and discard if the same. 17441748de26SSimon J. Gerraty 17451748de26SSimon J. Gerraty2013-03-08 Simon J. Gerraty <sjg@bad.crufty.net> 17461748de26SSimon J. Gerraty 17471748de26SSimon J. Gerraty * meta.stage.mk: use STAGE_TARGETS to control .ORDER 17481748de26SSimon J. Gerraty and hook to all: via staging: 17491748de26SSimon J. Gerraty 17501748de26SSimon J. Gerraty2013-03-07 Simon J. Gerraty <sjg@bad.crufty.net> 17511748de26SSimon J. Gerraty 17521748de26SSimon J. Gerraty * sys.dependfile.mk (.MAKE.DEPENDFILE_DEFAULT): 17531748de26SSimon J. Gerraty use a separate variable for the default .MAKE.DEPENDFILE value 17541748de26SSimon J. Gerraty so that it can be controlled independently of 17551748de26SSimon J. Gerraty .MAKE.DEPENDFILE_PREFERENCE 17561748de26SSimon J. Gerraty 17571748de26SSimon J. Gerraty * meta.stage.mk: throw error if cp fails etc. 17581748de26SSimon J. Gerraty Stage*() return early if passed no args. 17591748de26SSimon J. Gerraty .ORDER stage_* 17601748de26SSimon J. Gerraty 17611748de26SSimon J. Gerraty2013-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 17621748de26SSimon J. Gerraty 17631748de26SSimon J. Gerraty * install-mk (MK_VERSION): bump version 17641748de26SSimon J. Gerraty * gendirdeps.mk: handle multiple M2D_OBJROOTS better. 17651748de26SSimon J. Gerraty 17661748de26SSimon J. Gerraty2013-02-10 Simon J. Gerraty <sjg@bad.crufty.net> 17671748de26SSimon J. Gerraty 17681748de26SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20130210 17691748de26SSimon J. Gerraty * import latest dirdeps.mk, gendirdeps.mk and meta2deps.py 17701748de26SSimon J. Gerraty from Juniper. 17711748de26SSimon J. Gerraty o dirdeps.mk now fully supports TARGET_SPEC consisting of more 17721748de26SSimon J. Gerraty than just MACHINE. 17731748de26SSimon J. Gerraty o no longer use DEP_MACHINE from Makefile.depend* so remove it. 17741748de26SSimon J. Gerraty 17753cbdda60SSimon J. Gerraty2013-01-23 Simon J. Gerraty <sjg@bad.crufty.net> 17763cbdda60SSimon J. Gerraty 17773cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20130123 17783cbdda60SSimon J. Gerraty * meta.stage.mk: add stage_links (hard links). 17793cbdda60SSimon J. Gerraty if doing hard links, we add dest to link as well. 17803cbdda60SSimon J. Gerraty Default the stage dir for [sym]links to STAGE_OBJTOP since 17813cbdda60SSimon J. Gerraty these are typically specified as absolute paths. 17823cbdda60SSimon J. Gerraty Add -m "mode" flag to StageFiles and StageAs. 17833cbdda60SSimon J. Gerraty 17843cbdda60SSimon J. Gerraty2012-11-11 Simon J. Gerraty <sjg@bad.crufty.net> 17853cbdda60SSimon J. Gerraty 17863cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20121111 17873cbdda60SSimon J. Gerraty * autoconf.mk: avoid meta mode seeing changed commands for config.status 17883cbdda60SSimon J. Gerraty * meta.autodep.mk: pass resolved MAKESYSPATH to gendirdeps 17893cbdda60SSimon J. Gerraty in case we were found via .../mk 17903cbdda60SSimon J. Gerraty * sys.clean-env.mk: move it from examples, we and others use it 17913cbdda60SSimon J. Gerraty "as is". 17923cbdda60SSimon J. Gerraty * FILES: add srctop.mk and options.mk 17933cbdda60SSimon J. Gerraty * own.mk: convert to using options.mk 17943cbdda60SSimon J. Gerraty which is modeled after FreeBSD's handling of MK_* 17953cbdda60SSimon J. Gerraty but more flexible. 17963cbdda60SSimon J. Gerraty This allows MK_* for boolean knobs to not be confused 17973cbdda60SSimon J. Gerraty with MK* which can be commands. 17983cbdda60SSimon J. Gerraty 17993cbdda60SSimon J. Gerraty * examples/sys.clean-env.mk: add WITH[OUT]_ to 18003cbdda60SSimon J. Gerraty MAKE_ENV_SAVE_PREFIX_LIST. 18013cbdda60SSimon J. Gerraty Mention that HOME=/var/empty might be a good idea. 18023cbdda60SSimon J. Gerraty 18033cbdda60SSimon J. Gerraty2012-11-08 Simon J. Gerraty <sjg@bad.crufty.net> 18043cbdda60SSimon J. Gerraty 18053cbdda60SSimon J. Gerraty * sys.dependfile.mk: if not depend file exists, $MACHINE 18063cbdda60SSimon J. Gerraty specific ones are supported but not the default, 18073cbdda60SSimon J. Gerraty check if any exist and follow suit. 18083cbdda60SSimon J. Gerraty 18093cbdda60SSimon J. Gerraty2012-11-06 Simon J. Gerraty <sjg@bad.crufty.net> 18103cbdda60SSimon J. Gerraty 18113cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20121106 18123cbdda60SSimon J. Gerraty 18133cbdda60SSimon J. Gerraty2012-11-05 Simon J. Gerraty <sjg@bad.crufty.net> 18143cbdda60SSimon J. Gerraty 18153cbdda60SSimon J. Gerraty * import latest dirdeps.mk and meta2deps.py from Juniper. 18163cbdda60SSimon J. Gerraty * progs.mk: add MAN and CXXFLAGS to PROG_VARS 18173cbdda60SSimon J. Gerraty also add PROGS_TARGETS and pass on PROG_CXX if it seems 18183cbdda60SSimon J. Gerraty appropriate. 18193cbdda60SSimon J. Gerraty 18203cbdda60SSimon J. Gerraty2012-11-04 Simon J. Gerraty <sjg@bad.crufty.net> 18213cbdda60SSimon J. Gerraty 18223cbdda60SSimon J. Gerraty * meta.stage.mk: update CLEANFILES 18233cbdda60SSimon J. Gerraty remove redundant cp of .dirdep from STAGE_AS_SCRIPT. 18243cbdda60SSimon J. Gerraty * progs.mk: Add LDADD to PROG_VARS 18253cbdda60SSimon J. Gerraty 18263cbdda60SSimon J. Gerraty2012-10-12 Simon J. Gerraty <sjg@bad.crufty.net> 18273cbdda60SSimon J. Gerraty 18283cbdda60SSimon J. Gerraty * meta.stage.mk (STAGE_DIR_FILTER): track dirs we stage to in 18293cbdda60SSimon J. Gerraty _STAGED_DIRS so that these can be turned into filters for 18303cbdda60SSimon J. Gerraty GENDIRDEPS_FILTER. 18313cbdda60SSimon J. Gerraty 18323cbdda60SSimon J. Gerraty2012-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 18333cbdda60SSimon J. Gerraty 18343cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20121010 18353cbdda60SSimon J. Gerraty * meta.stage.mk (STAGE_DIRDEP_SCRIPT): check that an existing 18363cbdda60SSimon J. Gerraty target.dirdep matches .dirdep 18373cbdda60SSimon J. Gerraty 18383cbdda60SSimon J. Gerraty2012-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 18393cbdda60SSimon J. Gerraty 18403cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20120808 18413cbdda60SSimon J. Gerraty * import latest meta2deps.py from Juniper. 18423cbdda60SSimon J. Gerraty 18433cbdda60SSimon J. Gerraty2012-07-11 Simon J. Gerraty <sjg@bad.crufty.net> 18443cbdda60SSimon J. Gerraty 18453cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20120711 18463cbdda60SSimon J. Gerraty * dep.mk: add explicit dependencies on SRCS after applying 18473cbdda60SSimon J. Gerraty SRCS_DEP_FILTER 18483cbdda60SSimon J. Gerraty * meta.autodep.mk: add explicit dependencies on SRCS after 18493cbdda60SSimon J. Gerraty applying SRCS_DEP_FILTER 18503cbdda60SSimon J. Gerraty * meta.autodep.mk: ensure GENDIRDEPS_FILTER is exported if needed. 18513cbdda60SSimon J. Gerraty 18523cbdda60SSimon J. Gerraty2012-06-26 Simon J. Gerraty <sjg@bad.crufty.net> 18533cbdda60SSimon J. Gerraty 18543cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20120626 18553cbdda60SSimon J. Gerraty * meta.sys.mk: ignore PYTHON if it does not exist 18563cbdda60SSimon J. Gerraty compare ${.MAKE.DEPENDFILE:E} against ${MACHINE} is more reliable. 18573cbdda60SSimon J. Gerraty * meta.stage.mk: examine .MAKE.DEPENDFILE_PREFERENCE for any 18583cbdda60SSimon J. Gerraty entries ending in .${MACHINE} to decide if qualified _dirdep is 18593cbdda60SSimon J. Gerraty needed. 18603cbdda60SSimon J. Gerraty * gendirdeps.mk: only produce unqualified deps if no 18613cbdda60SSimon J. Gerraty .MAKE.DEPENDFILE_PREFERENCE ends in .${MACHINE} 1862ac3446e9SSimon J. Gerraty * meta.subdir.mk: apply SUBDIRDEPS_FILTER 18633cbdda60SSimon J. Gerraty 18643cbdda60SSimon J. Gerraty2012-04-20 Simon J. Gerraty <sjg@bad.crufty.net> 18653cbdda60SSimon J. Gerraty 18663cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20120420 18673cbdda60SSimon J. Gerraty * add sys.dependfile.mk so we can experiment with 18683cbdda60SSimon J. Gerraty .MAKE.DEPENDFILE_PREFERENCE 18693cbdda60SSimon J. Gerraty * meta.autodep.mk: _DEPENDFILE is precious! 18703cbdda60SSimon J. Gerraty 18713cbdda60SSimon J. Gerraty2012-03-15 Simon J. Gerraty <sjg@bad.crufty.net> 18723cbdda60SSimon J. Gerraty 18733cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20120315 18743cbdda60SSimon J. Gerraty * install-new.mk: avoid being interrupted 18753cbdda60SSimon J. Gerraty 18763cbdda60SSimon J. Gerraty2012-02-26 Simon J. Gerraty <sjg@bad.crufty.net> 18773cbdda60SSimon J. Gerraty 18783cbdda60SSimon J. Gerraty * man.mk: MAN might have multiple values so be careful with exists(). 18793cbdda60SSimon J. Gerraty 18803cbdda60SSimon J. Gerraty2012-01-19 Simon J. Gerraty <sjg@bad.crufty.net> 18813cbdda60SSimon J. Gerraty 18823cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20120112 18833cbdda60SSimon J. Gerraty * fix examples/sys.clean-env.mk so that MAKEOBJDIR is handled 18843cbdda60SSimon J. Gerraty as: MAKEOBJDIR='${.CURDIR:S,${SRCTOP},${OBJTOP},}' 18853cbdda60SSimon J. Gerraty 18863cbdda60SSimon J. Gerraty2011-12-03 Simon J. Gerraty <sjg@bad.crufty.net> 18873cbdda60SSimon J. Gerraty 18883cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20111201 18893cbdda60SSimon J. Gerraty * import dirdeps.mk from Juniper sjg@ 18903cbdda60SSimon J. Gerraty o more consistent handling of DEP_MACHINE, especially when 18913cbdda60SSimon J. Gerraty dealing with an odd Makefile.depend, when normally using 18923cbdda60SSimon J. Gerraty Makefile.depend.${MACHINE} 18933cbdda60SSimon J. Gerraty 18943cbdda60SSimon J. Gerraty2011-11-22 Simon J. Gerraty <sjg@bad.crufty.net> 18953cbdda60SSimon J. Gerraty 18963cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20111122 18973cbdda60SSimon J. Gerraty * meta.autodep.mk: add some debug output, be more crisp about 18983cbdda60SSimon J. Gerraty updating. Use ${.ALLTARGETS:M*.o} as a clue for .depend 18993cbdda60SSimon J. Gerraty 19003cbdda60SSimon J. Gerraty2011-11-13 Simon J. Gerraty <sjg@bad.crufty.net> 19013cbdda60SSimon J. Gerraty 19023cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20111111 19033cbdda60SSimon J. Gerraty it's too cool to miss 19043cbdda60SSimon J. Gerraty * import meta* updates from Juniper sjg@ 19053cbdda60SSimon J. Gerraty o dirdeps.mk set DEP_MACHINE for Makefile.depend (when we are 19063cbdda60SSimon J. Gerraty normally using Makefile.depend.${MACHINE}), handy for 19073cbdda60SSimon J. Gerraty read-only manually maintained dependencies. 19083cbdda60SSimon J. Gerraty o meta2deps.py add a clear 'ERROR:' token if an exception is raised. 19093cbdda60SSimon J. Gerraty o gendirdeps.mk if ERROR: from meta2deps.py do not update 19103cbdda60SSimon J. Gerraty anything. 19113cbdda60SSimon J. Gerraty 19123cbdda60SSimon J. Gerraty2011-10-30 Simon J. Gerraty <sjg@bad.crufty.net> 19133cbdda60SSimon J. Gerraty 19143cbdda60SSimon J. Gerraty * install-new.mk separate the cmp and copy logic to its own function. 19153cbdda60SSimon J. Gerraty 19163cbdda60SSimon J. Gerraty2011-10-28 Simon J. Gerraty <sjg@bad.crufty.net> 19173cbdda60SSimon J. Gerraty 19183cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20111028 19193cbdda60SSimon J. Gerraty * sys.mk: include auto.obj.mk if MKOBJDIRS is set to auto 19203cbdda60SSimon J. Gerraty * subdir.mk: ensure _SUBDIRUSE is provided 19213cbdda60SSimon J. Gerraty * meta.autodep.mk: remove dependency of gendirdeps.mk on auto.obj.mk 19223cbdda60SSimon J. Gerraty * meta.subdir.mk: always allow for Makefile.depend 19233cbdda60SSimon J. Gerraty 19243cbdda60SSimon J. Gerraty2011-10-10 Simon J. Gerraty <sjg@bad.crufty.net> 19253cbdda60SSimon J. Gerraty 19263cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20111010 19273cbdda60SSimon J. Gerraty o minor tweak to *dirdeps.mk from Juniper sjg@ 19283cbdda60SSimon J. Gerraty 19293cbdda60SSimon J. Gerraty2011-10-01 Simon J. Gerraty <sjg@bad.crufty.net> 19303cbdda60SSimon J. Gerraty 19313cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20111001 19323cbdda60SSimon J. Gerraty o add meta2deps.py from Juniper sjg@ 19333cbdda60SSimon J. Gerraty o tweak gendirdeps.mk to work with meta2deps.py when not 19343cbdda60SSimon J. Gerraty cross-building 19353cbdda60SSimon J. Gerraty * autoconf.mk: add autoconf-input as a hook for regenerating 19363cbdda60SSimon J. Gerraty AUTOCONF_INPUTS (configure). 19373cbdda60SSimon J. Gerraty 19383cbdda60SSimon J. Gerraty2011-08-24 Simon J. Gerraty <sjg@bad.crufty.net> 19393cbdda60SSimon J. Gerraty 19403cbdda60SSimon J. Gerraty * meta.autodep.mk: if we do not have OBJS, .depend isn't a useful 19413cbdda60SSimon J. Gerraty trigger for updating Makefile.depend* 19423cbdda60SSimon J. Gerraty 19433cbdda60SSimon J. Gerraty2011-08-08 Simon J. Gerraty <sjg@bad.crufty.net> 19443cbdda60SSimon J. Gerraty 19453cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20110808 19463cbdda60SSimon J. Gerraty * obj.mk: minor cleanup 19473cbdda60SSimon J. Gerraty * auto.obj.mk: improve description of Mkdirs and honor NO_OBJ too. 19483cbdda60SSimon J. Gerraty 19493cbdda60SSimon J. Gerraty2011-08-01 Simon J. Gerraty <sjg@bad.crufty.net> 19503cbdda60SSimon J. Gerraty 19513cbdda60SSimon J. Gerraty * auto.obj.mk (.OBJDIR): throw an error if we cannot use the 19523cbdda60SSimon J. Gerraty specified dir. 19533cbdda60SSimon J. Gerraty 19543cbdda60SSimon J. Gerraty2011-06-28 Simon J. Gerraty <sjg@bad.crufty.net> 19553cbdda60SSimon J. Gerraty 19563cbdda60SSimon J. Gerraty * meta.autodep.mk: if XMAKE_META_FILE is set 19573cbdda60SSimon J. Gerraty the makefile uses a foreign make, and so dependencies 19583cbdda60SSimon J. Gerraty can only be gathered from a clean tree build. 19593cbdda60SSimon J. Gerraty 19603cbdda60SSimon J. Gerraty2011-06-24 Simon J. Gerraty <sjg@bad.crufty.net> 19613cbdda60SSimon J. Gerraty 19623cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20110622 19633cbdda60SSimon J. Gerraty * meta.autodep.mk: improve bootstraping 19643cbdda60SSimon J. Gerraty 19653cbdda60SSimon J. Gerraty2011-06-10 Simon J. Gerraty <sjg@bad.crufty.net> 19663cbdda60SSimon J. Gerraty 19673cbdda60SSimon J. Gerraty * yacc.mk: handle the corner case of .c being removed 19683cbdda60SSimon J. Gerraty while .h remains. 19693cbdda60SSimon J. Gerraty 19703cbdda60SSimon J. Gerraty2011-06-08 Simon J. Gerraty <sjg@bad.crufty.net> 19713cbdda60SSimon J. Gerraty 19723cbdda60SSimon J. Gerraty * yacc.mk: do .y.h and .y.c separately 19733cbdda60SSimon J. Gerraty 19743cbdda60SSimon J. Gerraty2011-06-04 Simon J. Gerraty <sjg@bad.crufty.net> 19753cbdda60SSimon J. Gerraty 19763cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20110606 19773cbdda60SSimon J. Gerraty * don't store SRC_DIRDEPS in Makefile.depend* by default 19783cbdda60SSimon J. Gerraty not everyone needs it. 19793cbdda60SSimon J. Gerraty 19803cbdda60SSimon J. Gerraty2011-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 19813cbdda60SSimon J. Gerraty 19823cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20110505 19833cbdda60SSimon J. Gerraty first release including meta mode makefiles 19843cbdda60SSimon J. Gerraty 19853cbdda60SSimon J. Gerraty2011-05-02 Simon J. Gerraty <sjg@bad.crufty.net> 19863cbdda60SSimon J. Gerraty 19873cbdda60SSimon J. Gerraty * meta.stage.mk: add STAGE_AS_SETS and stage_as 19883cbdda60SSimon J. Gerraty for things that need to be staged with different names. 19893cbdda60SSimon J. Gerraty 19903cbdda60SSimon J. Gerraty2011-05-01 Simon J. Gerraty <sjg@bad.crufty.net> 19913cbdda60SSimon J. Gerraty 19923cbdda60SSimon J. Gerraty * meta.stage.mk: add notion of STAGE_SETS 19933cbdda60SSimon J. Gerraty so a makefile can stage to multiple dirs 19943cbdda60SSimon J. Gerraty 19953cbdda60SSimon J. Gerraty2011-04-03 Simon J. Gerraty <sjg@bad.crufty.net> 19963cbdda60SSimon J. Gerraty 19973cbdda60SSimon J. Gerraty * rst2htm.mk: convert rst to s5 (slides) or plain html depending 19983cbdda60SSimon J. Gerraty on target name. 19993cbdda60SSimon J. Gerraty 20003cbdda60SSimon J. Gerraty2011-03-30 Simon J. Gerraty <sjg@bad.crufty.net> 20013cbdda60SSimon J. Gerraty 20023cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20110330 20033cbdda60SSimon J. Gerraty 20043cbdda60SSimon J. Gerraty2011-03-29 Simon J. Gerraty <sjg@bad.crufty.net> 20053cbdda60SSimon J. Gerraty 20063cbdda60SSimon J. Gerraty * sys.mk (_DEBUG_MAKE_FLAGS): use indirection so that DEBUG_MAKE_FLAGS0 20073cbdda60SSimon J. Gerraty can be used to debug level 0 only and DEBUG_MAKE_FLAGS for the rest. 20083cbdda60SSimon J. Gerraty * sys.mk: re-define M_whence in terms of M_type. 20093cbdda60SSimon J. Gerraty M_type is useful for checking if something is a builtin. 20103cbdda60SSimon J. Gerraty 20113cbdda60SSimon J. Gerraty2011-03-16 Simon J. Gerraty <sjg@bad.crufty.net> 20123cbdda60SSimon J. Gerraty 20133cbdda60SSimon J. Gerraty * meta.stage.mk: add stage_symlinks and leverage StageLinks for 20143cbdda60SSimon J. Gerraty stage_libs 20153cbdda60SSimon J. Gerraty 20163cbdda60SSimon J. Gerraty2011-03-10 Simon J. Gerraty <sjg@bad.crufty.net> 20173cbdda60SSimon J. Gerraty 20183cbdda60SSimon J. Gerraty * dirdeps.mk: correct value for _depdir_files depends on 20193cbdda60SSimon J. Gerraty .MAKE.DEPENDFILE 20203cbdda60SSimon J. Gerraty Add our copyright - just to make it clear we have frobbed this 20213cbdda60SSimon J. Gerraty quite a bit. 20223cbdda60SSimon J. Gerraty DEP_MACHINE needs to be set to MACHINE each time, if using only 20233cbdda60SSimon J. Gerraty Makefile.depend (cf. Makefile.depend.${MACHINE}) 20243cbdda60SSimon J. Gerraty 20253cbdda60SSimon J. Gerraty * meta.stage.mk: meta mode version of staging 20263cbdda60SSimon J. Gerraty 20273cbdda60SSimon J. Gerraty * init.mk, final.mk: include local.*.mk to simplify customization 20283cbdda60SSimon J. Gerraty 20293cbdda60SSimon J. Gerraty2011-03-03 Simon J. Gerraty <sjg@bad.crufty.net> 20303cbdda60SSimon J. Gerraty 20313cbdda60SSimon J. Gerraty * auto.obj.mk: just because we are doing mk destroy, we should 20323cbdda60SSimon J. Gerraty still set .OBJDIR correctly if it exists. 20333cbdda60SSimon J. Gerraty 20343cbdda60SSimon J. Gerraty * install-mk (mksrc): do not exclude meta.sys.mk 20353cbdda60SSimon J. Gerraty 20363cbdda60SSimon J. Gerraty2011-03-01 Simon J. Gerraty <sjg@bad.crufty.net> 20373cbdda60SSimon J. Gerraty 20383cbdda60SSimon J. Gerraty * host-target.mk: set/export _HOST_ARCH etc separately, 20393cbdda60SSimon J. Gerraty catch junk resulting from uname -p, so we can find sys/Linux.mk 20403cbdda60SSimon J. Gerraty correctly. 20413cbdda60SSimon J. Gerraty 20423cbdda60SSimon J. Gerraty2011-02-18 Simon J. Gerraty <sjg@bad.crufty.net> 20433cbdda60SSimon J. Gerraty 20443cbdda60SSimon J. Gerraty * meta.sys.mk: throw an error if /dev/filemon is missing and we 20453cbdda60SSimon J. Gerraty expected to be updating Makefile.depend* 20463cbdda60SSimon J. Gerraty 20473cbdda60SSimon J. Gerraty2011-02-14 Simon J. Gerraty <sjg@bad.crufty.net> 20483cbdda60SSimon J. Gerraty 20493cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20110214 20503cbdda60SSimon J. Gerraty * meta.subdir.mk: add support for -DBOOTSTRAP_DEPENDFILES 20513cbdda60SSimon J. Gerraty 20523cbdda60SSimon J. Gerraty2010-09-25 Simon J. Gerraty <sjg@bad.crufty.net> 20533cbdda60SSimon J. Gerraty 20543cbdda60SSimon J. Gerraty * meta.sys.mk: not valid for older bmake 20553cbdda60SSimon J. Gerraty 20563cbdda60SSimon J. Gerraty2010-09-24 Simon J. Gerraty <sjg@bad.crufty.net> 20573cbdda60SSimon J. Gerraty 20583cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100919 20593cbdda60SSimon J. Gerraty include dirdeps.mk et al from Juniper Networks, 20603cbdda60SSimon J. Gerraty for meta mode - requires filemon(9). 20613cbdda60SSimon J. Gerraty * sys.mk, subdir.mk: Add hooks for meta mode. 20623cbdda60SSimon J. Gerraty we do this as meta.sys.mk, meta.autodep.mk and meta.subdir.mk 20633cbdda60SSimon J. Gerraty to make turning it on/off simple. 20643cbdda60SSimon J. Gerraty 20653cbdda60SSimon J. Gerraty2010-06-16 Simon J. Gerraty <sjg@bad.crufty.net> 20663cbdda60SSimon J. Gerraty 20673cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100616 20683cbdda60SSimon J. Gerraty * fix typo in sys.mk 20693cbdda60SSimon J. Gerraty 20703cbdda60SSimon J. Gerraty2010-06-12 Simon J. Gerraty <sjg@bad.crufty.net> 20713cbdda60SSimon J. Gerraty 20723cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100612 20733cbdda60SSimon J. Gerraty * lib.mk: remove duplicate addition to SOBJS 20743cbdda60SSimon J. Gerraty 20753cbdda60SSimon J. Gerraty2010-06-10 Simon J. Gerraty <sjg@bad.crufty.net> 20763cbdda60SSimon J. Gerraty 20773cbdda60SSimon J. Gerraty * sys.mk: Add a means of selectively turning on debug flags. 20783cbdda60SSimon J. Gerraty Eg. DEBUG_MAKE_FLAGS=-dv DEBUG_MAKE_DIRS="*lib/sjg" 20793cbdda60SSimon J. Gerraty will act as if we did make -dv if .CURDIR ends in lib/sjg 20803cbdda60SSimon J. Gerraty DEBUG_MAKE_SYS_DIRS does the same thing, but we set the flags at 20813cbdda60SSimon J. Gerraty the start of sys.mk rather than the end. 20823cbdda60SSimon J. Gerraty This only makes sense for leaf dirs, so we check that 20833cbdda60SSimon J. Gerraty .MAKE.LEVEL > 0 20843cbdda60SSimon J. Gerraty 20853cbdda60SSimon J. Gerraty2010-06-09 Simon J. Gerraty <sjg@bad.crufty.net> 20863cbdda60SSimon J. Gerraty 20873cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100608 20883cbdda60SSimon J. Gerraty * sys.mk: include sys.env.mk later so it can use M_ListToSkip et al. 20893cbdda60SSimon J. Gerraty * examples/sys.clean-env.mk: require MAKE_VERIONS >= 20100606 20903cbdda60SSimon J. Gerraty also make it easier for folk to tweak 20913cbdda60SSimon J. Gerraty 20923cbdda60SSimon J. Gerraty2010-06-08 Simon J. Gerraty <sjg@bad.crufty.net> 20933cbdda60SSimon J. Gerraty 20943cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100606 20953cbdda60SSimon J. Gerraty do not install examples/* 20963cbdda60SSimon J. Gerraty * FILES: add examples/sys.clean-env.mk 20973cbdda60SSimon J. Gerraty * examples/sys.clean-env.mk: use .export-env to handle MAKEOBJDIR 20983cbdda60SSimon J. Gerraty this requires bmake-20100606 or later to work. 20993cbdda60SSimon J. Gerraty 21003cbdda60SSimon J. Gerraty2010-05-13 Simon J. Gerraty <sjg@bad.crufty.net> 21013cbdda60SSimon J. Gerraty 21023cbdda60SSimon J. Gerraty * sys.mk (M_tA): better simulate the result of :tA if not available. 21033cbdda60SSimon J. Gerraty 21043cbdda60SSimon J. Gerraty2010-05-04 Simon J. Gerraty <sjg@bad.crufty.net> 21053cbdda60SSimon J. Gerraty 21063cbdda60SSimon J. Gerraty * sys.mk: canonicalize MAKE_VERSION 21073cbdda60SSimon J. Gerraty old versions reported bmake-<src-date> build-<build-date> 21083cbdda60SSimon J. Gerraty whereas we only care about <src-date> 21093cbdda60SSimon J. Gerraty 21103cbdda60SSimon J. Gerraty2010-04-25 Simon J. Gerraty <sjg@bad.crufty.net> 21113cbdda60SSimon J. Gerraty 21123cbdda60SSimon J. Gerraty * install-mk: just warn about FORCE_{BSD,SYS}_MK being ignored 21133cbdda60SSimon J. Gerraty * lib.mk: we only build the shared lib if SHLIB_FULLVERSION 21143cbdda60SSimon J. Gerraty is !empty 21153cbdda60SSimon J. Gerraty 21163cbdda60SSimon J. Gerraty2010-04-22 Simon J. Gerraty <sjg@bad.crufty.net> 21173cbdda60SSimon J. Gerraty 21183cbdda60SSimon J. Gerraty * dpadd.mk: use LDADD_* if defined. 21193cbdda60SSimon J. Gerraty 21203cbdda60SSimon J. Gerraty2010-04-21 Simon J. Gerraty <sjg@bad.crufty.net> 21213cbdda60SSimon J. Gerraty 21223cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100420 21233cbdda60SSimon J. Gerraty * sys/NetBSD.mk: add MACHINE_CPU to keep netbsd makefiles happy 21243cbdda60SSimon J. Gerraty * autoconf.mk allow AUTO_AUTOCONF 21253cbdda60SSimon J. Gerraty 21263cbdda60SSimon J. Gerraty2010-04-19 Simon J. Gerraty <sjg@bad.crufty.net> 21273cbdda60SSimon J. Gerraty 21283cbdda60SSimon J. Gerraty * obj.mk: add objwarn to keep freebsd makefiles happy 21293cbdda60SSimon J. Gerraty * auto.obj.mk: ensure Mkdirs is available. 21303cbdda60SSimon J. Gerraty * FILES: add auto.dep.mk - a simpler version of autodep.mk 21313cbdda60SSimon J. Gerraty * dep.mk: auto.dep.mk does not do 'make depend' so ignore it if 21323cbdda60SSimon J. Gerraty asked to do that. 21333cbdda60SSimon J. Gerraty fix/simplify the tests for when to run mkdep. 21345bcb7424SSimon J. Gerraty * auto.dep.mk: add some explanation of how/what we do. 21353cbdda60SSimon J. Gerraty * autodep.mk: skip the .OPTIONAL frobbing of .depend 21363cbdda60SSimon J. Gerraty bmake's FROM_DEPEND flag makes it redundant. 21373cbdda60SSimon J. Gerraty 21383cbdda60SSimon J. Gerraty2010-04-13 Simon J. Gerraty <sjg@bad.crufty.net> 21393cbdda60SSimon J. Gerraty 21403cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100404 21413cbdda60SSimon J. Gerraty * subdir.mk: protect from multiple inclusion using _SUBDIRUSE. 21423cbdda60SSimon J. Gerraty * obj.mk: protect from multiple inclusion even as bsd.obj.mk 21433cbdda60SSimon J. Gerraty Also create a target _SUBDIRUSE so that we can be used without 21443cbdda60SSimon J. Gerraty subdir.mk 21453cbdda60SSimon J. Gerraty 21463cbdda60SSimon J. Gerraty2010-04-12 Simon J. Gerraty <sjg@bad.crufty.net> 21473cbdda60SSimon J. Gerraty 21483cbdda60SSimon J. Gerraty * dep.mk: use <> when .including so can override. 21493cbdda60SSimon J. Gerraty 21503cbdda60SSimon J. Gerraty2010-01-11 Simon J. Gerraty <sjg@bad.crufty.net> 21513cbdda60SSimon J. Gerraty 21523cbdda60SSimon J. Gerraty * lib.mk (SHLIB_LINKS): ensure a string comparison. 21533cbdda60SSimon J. Gerraty 21543cbdda60SSimon J. Gerraty2010-01-04 Simon J. Gerraty <sjg@bad.crufty.net> 21553cbdda60SSimon J. Gerraty 21563cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20100102 21573cbdda60SSimon J. Gerraty * own.mk: ensure PRINTOBJDIR works 21583cbdda60SSimon J. Gerraty * autoconf.mk: pass on CONFIGURE_ARGS 21593cbdda60SSimon J. Gerraty * init.mk: handle COPTS.${.IMPSRC:T} etc. 21603cbdda60SSimon J. Gerraty * lib.mk: allow sys.mk to control SHLIB_FULLVERSION 21613cbdda60SSimon J. Gerraty fix handling of symlinks for darwin 21623cbdda60SSimon J. Gerraty * libnames.mk: add DSHLIBEXT for libs which only exist as shared. 21633cbdda60SSimon J. Gerraty * man.mk: suppress chown when not root. 21643cbdda60SSimon J. Gerraty * rst2htm.mk: allow srcs from multiple locations. 21653cbdda60SSimon J. Gerraty * sys.mk: M_whence, stop after 1st line of output. 21663cbdda60SSimon J. Gerraty * sys/Darwin.mk: Use .dylib for DSHLIBEXT and HOST_LIBEXT 21673cbdda60SSimon J. Gerraty * sys/SunOS.mk: we need to export PATH 21683cbdda60SSimon J. Gerraty 21693cbdda60SSimon J. Gerraty2009-12-23 Simon J. Gerraty <sjg@void.crufty.net> 21703cbdda60SSimon J. Gerraty 21713cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 21723cbdda60SSimon J. Gerraty include rst2htm.mk 21733cbdda60SSimon J. Gerraty 21743cbdda60SSimon J. Gerraty2009-12-17 Simon J. Gerraty <sjg@void.crufty.net> 21753cbdda60SSimon J. Gerraty 21763cbdda60SSimon J. Gerraty * sys.mk,libnames.mk add .-include <local.*> 21773cbdda60SSimon J. Gerraty this allows local customization without the need to edit the 21783cbdda60SSimon J. Gerraty distributed files. 21793cbdda60SSimon J. Gerraty 21803cbdda60SSimon J. Gerraty2009-12-14 Simon J. Gerraty <sjg@void.crufty.net> 21813cbdda60SSimon J. Gerraty 21823cbdda60SSimon J. Gerraty * dpadd.mk (__dpadd_libdirs): order -L's to avoid picking up 21833cbdda60SSimon J. Gerraty older versions already installed. 21843cbdda60SSimon J. Gerraty 21853cbdda60SSimon J. Gerraty2009-12-13 Simon J. Gerraty <sjg@void.crufty.net> 21863cbdda60SSimon J. Gerraty 21873cbdda60SSimon J. Gerraty * stage.mk (.stage-install): generalize lib.mk's .libinstall 21883cbdda60SSimon J. Gerraty * rules.mk rules for generic Makefile. 21893cbdda60SSimon J. Gerraty * inc.mk install for includes. 21903cbdda60SSimon J. Gerraty 21913cbdda60SSimon J. Gerraty2009-12-11 Simon J. Gerraty <sjg@void.crufty.net> 21923cbdda60SSimon J. Gerraty 21933cbdda60SSimon J. Gerraty * sys/NetBSD.mk (MAKE_VERSION): some of our *.mk want to check 21943cbdda60SSimon J. Gerraty this, so provide it if using native make. 21953cbdda60SSimon J. Gerraty 21963cbdda60SSimon J. Gerraty2009-12-10 Simon J. Gerraty <sjg@void.crufty.net> 21973cbdda60SSimon J. Gerraty 21983cbdda60SSimon J. Gerraty * FILES: move all the platform *.sys.mk files to sys/*.mk 21993cbdda60SSimon J. Gerraty * Rename Generic.sys.mk to sys.mk - we always want it. 22003cbdda60SSimon J. Gerraty 22013cbdda60SSimon J. Gerraty2009-11-17 Simon J. Gerraty <sjg@void.crufty.net> 22023cbdda60SSimon J. Gerraty 22033cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22043cbdda60SSimon J. Gerraty * host-target.mk: only export the expensive stuff 22053cbdda60SSimon J. Gerraty * Generic.sys.mk (sys_mk): for SunOS we need to look for 22063cbdda60SSimon J. Gerraty ${HOST_OS}.${HOST_OSMAJOR} too! 22073cbdda60SSimon J. Gerraty 22083cbdda60SSimon J. Gerraty2009-11-07 Simon J. Gerraty <sjg@void.crufty.net> 22093cbdda60SSimon J. Gerraty 22103cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22113cbdda60SSimon J. Gerraty * lib.mk: if sys.mk doesn't give us an lorder, don't use it. 22123cbdda60SSimon J. Gerraty based on patch from Greg Olszewski. 22133cbdda60SSimon J. Gerraty * Generic.sys.mk: if we have nothing to work with 22143cbdda60SSimon J. Gerraty set LORDER etc only if we can find it. 22153cbdda60SSimon J. Gerraty 22163cbdda60SSimon J. Gerraty2009-09-08 Simon J. Gerraty <sjg@void.crufty.net> 22173cbdda60SSimon J. Gerraty 22183cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22193cbdda60SSimon J. Gerraty * man.mk: cleanman: remove CLEANMAN if defined. 22203cbdda60SSimon J. Gerraty 22213cbdda60SSimon J. Gerraty2009-09-04 Simon J. Gerraty <sjg@void.crufty.net> 22223cbdda60SSimon J. Gerraty 22233cbdda60SSimon J. Gerraty * SunOS.5.sys.mk (CC): Use ?= like the other *sys.mk 22243cbdda60SSimon J. Gerraty 22253cbdda60SSimon J. Gerraty2009-07-17 Simon J. Gerraty <sjg@void.crufty.net> 22263cbdda60SSimon J. Gerraty 22273cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22283cbdda60SSimon J. Gerraty include auto.obj.mk 22293cbdda60SSimon J. Gerraty 22303cbdda60SSimon J. Gerraty 22313cbdda60SSimon J. Gerraty2009-03-26 Simon J. Gerraty <sjg@void.crufty.net> 22323cbdda60SSimon J. Gerraty 22333cbdda60SSimon J. Gerraty * prog.mk,lib.mk: ensure test of USE_DPADD_MK doesn't fail. 22343cbdda60SSimon J. Gerraty 22353cbdda60SSimon J. Gerraty2008-11-11 Simon J. Gerraty <sjg@void.crufty.net> 22363cbdda60SSimon J. Gerraty 22373cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22383cbdda60SSimon J. Gerraty man.mk: ensure we generate *.cat1 etc in . 22393cbdda60SSimon J. Gerraty 22403cbdda60SSimon J. Gerraty2008-07-16 Simon J. Gerraty <sjg@void.crufty.net> 22413cbdda60SSimon J. Gerraty 22423cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22433cbdda60SSimon J. Gerraty add prlist.mk 22443cbdda60SSimon J. Gerraty 22453cbdda60SSimon J. Gerraty2007-11-25 Simon J. Gerraty <sjg@void.crufty.net> 22463cbdda60SSimon J. Gerraty 22473cbdda60SSimon J. Gerraty * Generic.sys.mk: Allow os specific sys.mk to be in a 22483cbdda60SSimon J. Gerraty subdir of ${.PARSEDIR} 22493cbdda60SSimon J. Gerraty 22503cbdda60SSimon J. Gerraty2007-11-22 Simon J. Gerraty <sjg@void.crufty.net> 22513cbdda60SSimon J. Gerraty 22523cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22533cbdda60SSimon J. Gerraty * general cleanup 22543cbdda60SSimon J. Gerraty * dpadd.mk introduce DPMAGIC_LIBS_* 22553cbdda60SSimon J. Gerraty 22563cbdda60SSimon J. Gerraty2007-04-30 Simon J. Gerraty <sjg@void.crufty.net> 22573cbdda60SSimon J. Gerraty 22583cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22593cbdda60SSimon J. Gerraty 22603cbdda60SSimon J. Gerraty * libs.mk, progs.mk, autodep.mk: allow for per lib/prog 22613cbdda60SSimon J. Gerraty depend files and ensure clean is called for each lib/prog. 22623cbdda60SSimon J. Gerraty 22633cbdda60SSimon J. Gerraty2007-03-27 Simon J. Gerraty <sjg@void.crufty.net> 22643cbdda60SSimon J. Gerraty 22653cbdda60SSimon J. Gerraty * autodep.mk (.depend): delete lines that do not start with 22663cbdda60SSimon J. Gerraty space and do not contain ':' 22673cbdda60SSimon J. Gerraty 22683cbdda60SSimon J. Gerraty2007-02-16 Simon J. Gerraty <sjg@void.crufty.net> 22693cbdda60SSimon J. Gerraty 22703cbdda60SSimon J. Gerraty * autodep.mk (.depend): gcc may wrap lines if pathnames are long 22713cbdda60SSimon J. Gerraty so make sure the transform for .OPTIONAL copes. 22723cbdda60SSimon J. Gerraty 22733cbdda60SSimon J. Gerraty2007-02-03 Simon J. Gerraty <sjg@void.crufty.net> 22743cbdda60SSimon J. Gerraty 22753cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22763cbdda60SSimon J. Gerraty 22773cbdda60SSimon J. Gerraty * own.mk: make sure RM and LN are defined. 22783cbdda60SSimon J. Gerraty 22793cbdda60SSimon J. Gerraty * obj.mk: fix a typo, and objlink target. 22803cbdda60SSimon J. Gerraty 22813cbdda60SSimon J. Gerraty2006-12-30 Simon J. Gerraty <sjg@void.crufty.net> 22823cbdda60SSimon J. Gerraty 22833cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version 22845bcb7424SSimon J. Gerraty * added libs.mk - analogous to progs.mk 22853cbdda60SSimon J. Gerraty make both of them always inlcude {lib,prog}.mk 22863cbdda60SSimon J. Gerraty 22873cbdda60SSimon J. Gerraty2006-12-28 Simon J. Gerraty <sjg@void.crufty.net> 22883cbdda60SSimon J. Gerraty 22893cbdda60SSimon J. Gerraty * progs.mk: add a means of building multiple apps in one dir. 22903cbdda60SSimon J. Gerraty 22913cbdda60SSimon J. Gerraty2006-11-26 Simon J. Gerraty <sjg@void.crufty.net> 22923cbdda60SSimon J. Gerraty 22933cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20061126 22943cbdda60SSimon J. Gerraty 22953cbdda60SSimon J. Gerraty * warnings.mk: detect invalid WARNINGS_SET 22963cbdda60SSimon J. Gerraty 22973cbdda60SSimon J. Gerraty * warnings.mk: use ${.TARGET:T:R}.o when looking for target 22983cbdda60SSimon J. Gerraty specific warnings. 22993cbdda60SSimon J. Gerraty 23003cbdda60SSimon J. Gerraty * For .cc sources, turn off warnings that g++ vomits on. 23013cbdda60SSimon J. Gerraty 23023cbdda60SSimon J. Gerraty2006-11-08 Simon J. Gerraty <sjg@void.crufty.net> 23033cbdda60SSimon J. Gerraty 23043cbdda60SSimon J. Gerraty * own.mk: if __initialized__ target doesn't exist and we are 23053cbdda60SSimon J. Gerraty FreeBSD we got here directly from sys.mk 23063cbdda60SSimon J. Gerraty 23073cbdda60SSimon J. Gerraty2006-11-06 Simon J. Gerraty <sjg@void.crufty.net> 23083cbdda60SSimon J. Gerraty 23093cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20061106 23103cbdda60SSimon J. Gerraty add scripts.mk 23113cbdda60SSimon J. Gerraty 23123cbdda60SSimon J. Gerraty2006-03-18 Simon J. Gerraty <sjg@void.crufty.net> 23133cbdda60SSimon J. Gerraty 23143cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20060318 23153cbdda60SSimon J. Gerraty 23163cbdda60SSimon J. Gerraty * autodep.mk: avoid := when modifying OBJS into __dependsrcs 23173cbdda60SSimon J. Gerraty 23183cbdda60SSimon J. Gerraty2006-03-02 Simon J. Gerraty <sjg@void.crufty.net> 23193cbdda60SSimon J. Gerraty 23203cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20060302 23213cbdda60SSimon J. Gerraty * autodep.mk: use -MF et al to help gcc+ccache DTRT. 23223cbdda60SSimon J. Gerraty 23233cbdda60SSimon J. Gerraty2006-03-01 Simon J. Gerraty <sjg@void.crufty.net> 23243cbdda60SSimon J. Gerraty 23253cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20060301 23263cbdda60SSimon J. Gerraty * autodep.mk (.depend): 23273cbdda60SSimon J. Gerraty if MAKE_VERSION is newer than 20050530 we can make .END depend on 23283cbdda60SSimon J. Gerraty .depend and make .depend depend on __depsrcs that exist. 23293cbdda60SSimon J. Gerraty * dpadd.mk: add SRC_PATHADD 23303cbdda60SSimon J. Gerraty 23313cbdda60SSimon J. Gerraty2005-11-04 Simon J. Gerraty <sjg@void.crufty.net> 23323cbdda60SSimon J. Gerraty 23333cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20051104 23343cbdda60SSimon J. Gerraty * prog.mk: remove all the LIBC?= junk, use 23353cbdda60SSimon J. Gerraty .-include libnames.mk instead (none by default). 23363cbdda60SSimon J. Gerraty also if USE_DPADD_MK is set, include that. 23373cbdda60SSimon J. Gerraty 23383cbdda60SSimon J. Gerraty2005-10-09 Simon J. Gerraty <sjg@void.crufty.net> 23393cbdda60SSimon J. Gerraty 23403cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20051001 23413cbdda60SSimon J. Gerraty Add UnixWare.sys.mk from Klaus Heinz. 23423cbdda60SSimon J. Gerraty 23433cbdda60SSimon J. Gerraty2005-04-05 Simon J. Gerraty <sjg@void.crufty.net> 23443cbdda60SSimon J. Gerraty 23453cbdda60SSimon J. Gerraty * install-mk: always install *.sys.mk and if need be symlink one 23463cbdda60SSimon J. Gerraty to sys.mk 23473cbdda60SSimon J. Gerraty 23483cbdda60SSimon J. Gerraty2005-03-22 Simon J. Gerraty <sjg@void.crufty.net> 23493cbdda60SSimon J. Gerraty 23503cbdda60SSimon J. Gerraty * subdir.mk, own.mk: use .MAKE rather than MAKE 23513cbdda60SSimon J. Gerraty 23523cbdda60SSimon J. Gerraty2004-02-15 Simon J. Gerraty <sjg@void.crufty.net> 23533cbdda60SSimon J. Gerraty 23543cbdda60SSimon J. Gerraty * own.mk: don't use NetBSD's _SRC_TOP_ it can 23553cbdda60SSimon J. Gerraty cause confusion. Also don't take just 'mk' as a 23563cbdda60SSimon J. Gerraty srctop indicator. 23573cbdda60SSimon J. Gerraty 23583cbdda60SSimon J. Gerraty2004-02-14 Simon J. Gerraty <sjg@void.crufty.net> 23593cbdda60SSimon J. Gerraty 23603cbdda60SSimon J. Gerraty * warnings.mk: overhauled, now very powerful. 23613cbdda60SSimon J. Gerraty 23623cbdda60SSimon J. Gerraty2004-02-03 Simon J. Gerraty <sjg@void.crufty.net> 23633cbdda60SSimon J. Gerraty 23643cbdda60SSimon J. Gerraty * Generic.sys.mk: need to use ${.PARSEDIR} with exists(). 23653cbdda60SSimon J. Gerraty 23663cbdda60SSimon J. Gerraty2004-02-01 Simon J. Gerraty <sjg@void.crufty.net> 23673cbdda60SSimon J. Gerraty 23683cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): bump version to 20040201 23693cbdda60SSimon J. Gerraty * extract HOST_TARGET stuff to host-target.mk so own.mk and 23703cbdda60SSimon J. Gerraty Generic.sys.mk can share. 23713cbdda60SSimon J. Gerraty * fix typo in autodep.mk _SUBDIRUSE not _SUBDIR. 23723cbdda60SSimon J. Gerraty 23733cbdda60SSimon J. Gerraty2003-09-30 Simon J. Gerraty <sjg@void.crufty.net> 23743cbdda60SSimon J. Gerraty 23753cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): 20030930 23763cbdda60SSimon J. Gerraty * rename generic.sys.mk to Generic.sys.mk 23773cbdda60SSimon J. Gerraty so that it does not get installed (unless being used as sys.mk) 23783cbdda60SSimon J. Gerraty * set OS and ROOT_GROUP for those that we know the value. 23793cbdda60SSimon J. Gerraty for others (eg. Generic.sys.mk) wrap the != in an .ifndef so 23803cbdda60SSimon J. Gerraty we don't do it again for each sub-make. 23813cbdda60SSimon J. Gerraty 23823cbdda60SSimon J. Gerraty2003-09-28 Simon J. Gerraty <sjg@void.crufty.net> 23833cbdda60SSimon J. Gerraty 23843cbdda60SSimon J. Gerraty * install-mk (MK_VERSION): 20030928 23853cbdda60SSimon J. Gerraty Add some extra *.sys.mk from bootstrap-pkgsrc 23863cbdda60SSimon J. Gerraty some of these likely still need work. 23873cbdda60SSimon J. Gerraty Make everything default to root:wheel ownership, 23883cbdda60SSimon J. Gerraty sys.mk can set ROOT_GROUP accordingly. 23893cbdda60SSimon J. Gerraty 23903cbdda60SSimon J. Gerraty2003-08-07 Simon J. Gerraty <sjg@void.crufty.net> 23913cbdda60SSimon J. Gerraty 23923cbdda60SSimon J. Gerraty * install-mk: if FORCE_BSD_MK={cp,ln} use the ones in SYS_MK_DIR 23933cbdda60SSimon J. Gerraty not the portable ones. 23943cbdda60SSimon J. Gerraty 23953cbdda60SSimon J. Gerraty2003-07-31 Simon J. Gerraty <sjg@void.crufty.net> 23963cbdda60SSimon J. Gerraty 23973cbdda60SSimon J. Gerraty * install-mk: add ability to use cp -f when updating 23983cbdda60SSimon J. Gerraty destination .mk files. Also now possible to play games with 23993cbdda60SSimon J. Gerraty FORCE_SYS_MK=ln etc on *BSD machines to link /usr/share/mk/sys.mk 24003cbdda60SSimon J. Gerraty into dest - not recommended unless you seriously want to. 24013cbdda60SSimon J. Gerraty 24023cbdda60SSimon J. Gerraty2003-07-28 Simon J. Gerraty <sjg@void.crufty.net> 24033cbdda60SSimon J. Gerraty 24043cbdda60SSimon J. Gerraty * own.mk (IMPFLAGS): add support for COPTS.${IMPSRC:T} etc 24053cbdda60SSimon J. Gerraty for semi-compatability with NetBSD. 24063cbdda60SSimon J. Gerraty 24073cbdda60SSimon J. Gerraty2003-07-23 Simon J. Gerraty <sjg@void.crufty.net> 24083cbdda60SSimon J. Gerraty 24093cbdda60SSimon J. Gerraty * install-mk: add a version indicator 24103cbdda60SSimon J. Gerraty 24113cbdda60SSimon J. Gerraty2003-07-22 Simon J. Gerraty <sjg@void.crufty.net> 24123cbdda60SSimon J. Gerraty 24133cbdda60SSimon J. Gerraty * prog.mk: don't try and use ${LIBCRT0} if its /dev/null 24143cbdda60SSimon J. Gerraty 24153cbdda60SSimon J. Gerraty * install-mk: Allow FORCE_SYS_MK to come from env 24163cbdda60SSimon J. Gerraty 24173cbdda60SSimon J. Gerraty 24183cbdda60SSimon J. Gerraty 2419