mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
![Simon J. Gerraty](/assets/img/avatar_default.png)
Most relevant change: o parse.c: try to include 'posix.mk' the first time .POSIX: is encountered, to allow for beter POSIX compliance. Others o cond.c: make debug logging for comparisons less technical o lst.c: fix mem leak in Lst_Remove o job.c: fix echoing of command with '-' in silent target in jobs mode o var.c: make debug logs more readable prefer 'long long' over 'long' on 32-bit C99 platforms fix crash on .undef of an environment variable
31 lines
721 B
Makefile
31 lines
721 B
Makefile
# $NetBSD: depsrc-meta.mk,v 1.7 2022/03/02 19:32:15 sjg Exp $
|
|
#
|
|
# Tests for the special source .META in dependency declarations.
|
|
|
|
# TODO: Implementation
|
|
# TODO: Explanation
|
|
|
|
.MAIN: all
|
|
|
|
.if make(actual-test)
|
|
.MAKEFLAGS: -dM
|
|
.MAKE.MODE= meta curDirOk=true nofilemon
|
|
.endif
|
|
|
|
actual-test: depsrc-meta-target
|
|
depsrc-meta-target: .META
|
|
@> ${.TARGET}-file
|
|
@rm -f ${.TARGET}-file
|
|
|
|
check-results:
|
|
@echo 'Targets from meta mode${.MAKE.JOBS:D in jobs mode}:'
|
|
@awk '/^TARGET/ { print "| " $$0 }' depsrc-meta-target.meta
|
|
@rm depsrc-meta-target.meta
|
|
|
|
all:
|
|
@${MAKE} -r -f ${MAKEFILE} actual-test
|
|
@${MAKE} -r -f ${MAKEFILE} check-results
|
|
|
|
@${MAKE} -r -f ${MAKEFILE} actual-test -j1
|
|
@${MAKE} -r -f ${MAKEFILE} check-results -j1
|