Makefile revision 1.207
1# $NetBSD: Makefile,v 1.207 2020/11/18 04:10:34 sjg Exp $ 2# 3# Unit tests for make(1) 4# 5# The main targets are: 6# 7# all: 8# run all the tests 9# test: 10# run 'all', and compare to expected results 11# accept: 12# move generated output to expected results 13# 14# Settable variables 15# 16# TEST_MAKE 17# The make program to be tested. 18# 19# 20# Adding a test case 21# 22# Each feature should get its own set of tests in its own suitably 23# named makefile (*.mk), with its own set of expected results (*.exp), 24# and it should be added to the TESTS list. 25# 26# Any added files must also be added to src/distrib/sets/lists/tests/mi. 27# To do that, just run "make sync-mi" in this directory. 28# 29# A few *.mk files are helper files for other tests (such as include-sub.mk) 30# and are thus not added to TESTS. Such files must be ignored in 31# src/tests/usr.bin/make/t_make.sh. 32# 33 34# Each test is in a sub-makefile. 35# Keep the list sorted. 36# Any test that is commented out must be ignored in 37# src/tests/usr.bin/make/t_make.sh as well. 38TESTS+= archive 39TESTS+= archive-suffix 40TESTS+= cmd-errors 41TESTS+= cmd-errors-lint 42TESTS+= cmd-interrupt 43TESTS+= cmdline 44TESTS+= cmdline-undefined 45TESTS+= comment 46TESTS+= cond-cmp-numeric 47TESTS+= cond-cmp-numeric-eq 48TESTS+= cond-cmp-numeric-ge 49TESTS+= cond-cmp-numeric-gt 50TESTS+= cond-cmp-numeric-le 51TESTS+= cond-cmp-numeric-lt 52TESTS+= cond-cmp-numeric-ne 53TESTS+= cond-cmp-string 54TESTS+= cond-cmp-unary 55TESTS+= cond-func 56TESTS+= cond-func-commands 57TESTS+= cond-func-defined 58TESTS+= cond-func-empty 59TESTS+= cond-func-exists 60TESTS+= cond-func-make 61TESTS+= cond-func-target 62TESTS+= cond-late 63TESTS+= cond-op 64TESTS+= cond-op-and 65TESTS+= cond-op-and-lint 66TESTS+= cond-op-not 67TESTS+= cond-op-or 68TESTS+= cond-op-or-lint 69TESTS+= cond-op-parentheses 70TESTS+= cond-short 71TESTS+= cond-token-number 72TESTS+= cond-token-plain 73TESTS+= cond-token-string 74TESTS+= cond-token-var 75TESTS+= cond-undef-lint 76TESTS+= cond1 77TESTS+= counter 78TESTS+= counter-append 79TESTS+= dep 80TESTS+= dep-colon 81TESTS+= dep-colon-bug-cross-file 82TESTS+= dep-double-colon 83TESTS+= dep-double-colon-indep 84TESTS+= dep-exclam 85TESTS+= dep-none 86TESTS+= dep-percent 87TESTS+= dep-var 88TESTS+= dep-wildcards 89TESTS+= depsrc 90TESTS+= depsrc-end 91TESTS+= depsrc-exec 92TESTS+= depsrc-ignore 93TESTS+= depsrc-made 94TESTS+= depsrc-make 95TESTS+= depsrc-meta 96TESTS+= depsrc-nometa 97TESTS+= depsrc-nometa_cmp 98TESTS+= depsrc-nopath 99TESTS+= depsrc-notmain 100TESTS+= depsrc-optional 101TESTS+= depsrc-phony 102TESTS+= depsrc-precious 103TESTS+= depsrc-recursive 104TESTS+= depsrc-silent 105TESTS+= depsrc-use 106TESTS+= depsrc-usebefore 107TESTS+= depsrc-usebefore-double-colon 108TESTS+= depsrc-wait 109TESTS+= deptgt 110TESTS+= deptgt-begin 111TESTS+= deptgt-default 112TESTS+= deptgt-delete_on_error 113TESTS+= deptgt-end 114TESTS+= deptgt-end-jobs 115TESTS+= deptgt-error 116TESTS+= deptgt-ignore 117TESTS+= deptgt-interrupt 118TESTS+= deptgt-main 119TESTS+= deptgt-makeflags 120TESTS+= deptgt-no_parallel 121TESTS+= deptgt-nopath 122TESTS+= deptgt-notparallel 123TESTS+= deptgt-objdir 124TESTS+= deptgt-order 125TESTS+= deptgt-path 126TESTS+= deptgt-path-suffix 127TESTS+= deptgt-phony 128TESTS+= deptgt-precious 129TESTS+= deptgt-shell 130TESTS+= deptgt-silent 131TESTS+= deptgt-stale 132TESTS+= deptgt-suffixes 133TESTS+= dir 134TESTS+= dir-expand-path 135TESTS+= directive 136TESTS+= directive-dinclude 137TESTS+= directive-elif 138TESTS+= directive-elifdef 139TESTS+= directive-elifmake 140TESTS+= directive-elifndef 141TESTS+= directive-elifnmake 142TESTS+= directive-else 143TESTS+= directive-endif 144TESTS+= directive-error 145TESTS+= directive-export 146TESTS+= directive-export-env 147TESTS+= directive-export-gmake 148TESTS+= directive-export-literal 149TESTS+= directive-for 150TESTS+= directive-for-generating-endif 151TESTS+= directive-hyphen-include 152TESTS+= directive-if 153TESTS+= directive-if-nested 154TESTS+= directive-ifdef 155TESTS+= directive-ifmake 156TESTS+= directive-ifndef 157TESTS+= directive-ifnmake 158TESTS+= directive-include 159TESTS+= directive-include-fatal 160TESTS+= directive-info 161TESTS+= directive-sinclude 162TESTS+= directive-undef 163TESTS+= directive-unexport 164TESTS+= directive-unexport-env 165TESTS+= directive-warning 166TESTS+= dollar 167TESTS+= doterror 168TESTS+= dotwait 169TESTS+= envfirst 170TESTS+= error 171TESTS+= # escape # broken by reverting POSIX changes 172TESTS+= export 173TESTS+= export-all 174TESTS+= export-env 175TESTS+= export-variants 176TESTS+= forloop 177TESTS+= forsubst 178TESTS+= gnode-submake 179TESTS+= hanoi-include 180TESTS+= impsrc 181TESTS+= include-main 182TESTS+= job-flags 183TESTS+= job-output-long-lines 184TESTS+= lint 185TESTS+= make-exported 186TESTS+= moderrs 187TESTS+= modmatch 188TESTS+= modmisc 189TESTS+= modts 190TESTS+= modword 191TESTS+= objdir-writable 192TESTS+= opt 193TESTS+= opt-backwards 194TESTS+= opt-chdir 195TESTS+= opt-debug 196TESTS+= opt-debug-all 197TESTS+= opt-debug-archive 198TESTS+= opt-debug-curdir 199TESTS+= opt-debug-cond 200TESTS+= opt-debug-dir 201TESTS+= opt-debug-errors 202TESTS+= opt-debug-file 203TESTS+= opt-debug-for 204TESTS+= opt-debug-graph1 205TESTS+= opt-debug-graph2 206TESTS+= opt-debug-graph3 207TESTS+= opt-debug-hash 208TESTS+= opt-debug-jobs 209TESTS+= opt-debug-lint 210TESTS+= opt-debug-loud 211TESTS+= opt-debug-meta 212TESTS+= opt-debug-making 213TESTS+= opt-debug-no-rm 214TESTS+= opt-debug-parse 215TESTS+= opt-debug-suff 216TESTS+= opt-debug-targets 217TESTS+= opt-debug-varraw 218TESTS+= opt-debug-var 219TESTS+= opt-debug-x-trace 220TESTS+= opt-define 221TESTS+= opt-env 222TESTS+= opt-file 223TESTS+= opt-ignore 224TESTS+= opt-include-dir 225TESTS+= opt-jobs 226TESTS+= opt-jobs-internal 227TESTS+= opt-keep-going 228TESTS+= opt-m-include-dir 229TESTS+= opt-no-action 230TESTS+= opt-no-action-at-all 231TESTS+= opt-query 232TESTS+= opt-raw 233TESTS+= opt-silent 234TESTS+= opt-touch 235TESTS+= opt-touch-jobs 236TESTS+= opt-tracefile 237TESTS+= opt-var-expanded 238TESTS+= opt-var-literal 239TESTS+= opt-warnings-as-errors 240TESTS+= opt-where-am-i 241TESTS+= opt-x-reduce-exported 242TESTS+= order 243TESTS+= parse-var 244TESTS+= phony-end 245TESTS+= posix 246TESTS+= # posix1 # broken by reverting POSIX changes 247TESTS+= qequals 248TESTS+= recursive 249TESTS+= sh 250TESTS+= sh-dots 251TESTS+= sh-jobs 252TESTS+= sh-jobs-error 253TESTS+= sh-leading-at 254TESTS+= sh-leading-hyphen 255TESTS+= sh-leading-plus 256TESTS+= sh-meta-chars 257TESTS+= sh-multi-line 258TESTS+= sh-single-line 259TESTS+= shell-csh 260TESTS+= shell-custom 261TESTS+= shell-ksh 262TESTS+= shell-sh 263TESTS+= suff-add-later 264TESTS+= suff-clear-regular 265TESTS+= suff-clear-single 266TESTS+= suff-lookup 267TESTS+= suff-main 268TESTS+= suff-rebuild 269TESTS+= suff-self 270TESTS+= suff-transform-endless 271TESTS+= suff-transform-expand 272TESTS+= suff-transform-select 273TESTS+= sunshcmd 274TESTS+= ternary 275TESTS+= unexport 276TESTS+= unexport-env 277TESTS+= use-inference 278TESTS+= var-class 279TESTS+= var-class-cmdline 280TESTS+= var-class-env 281TESTS+= var-class-global 282TESTS+= var-class-local 283TESTS+= var-class-local-legacy 284TESTS+= var-op 285TESTS+= var-op-append 286TESTS+= var-op-assign 287TESTS+= var-op-default 288TESTS+= var-op-expand 289TESTS+= var-op-shell 290TESTS+= var-op-sunsh 291TESTS+= var-recursive 292TESTS+= varcmd 293TESTS+= vardebug 294TESTS+= varfind 295TESTS+= varmisc 296TESTS+= varmod 297TESTS+= varmod-assign 298TESTS+= varmod-defined 299TESTS+= varmod-edge 300TESTS+= varmod-exclam-shell 301TESTS+= varmod-extension 302TESTS+= varmod-gmtime 303TESTS+= varmod-hash 304TESTS+= varmod-head 305TESTS+= varmod-ifelse 306TESTS+= varmod-l-name-to-value 307TESTS+= varmod-localtime 308TESTS+= varmod-loop 309TESTS+= varmod-match 310TESTS+= varmod-match-escape 311TESTS+= varmod-no-match 312TESTS+= varmod-order 313TESTS+= varmod-order-reverse 314TESTS+= varmod-order-shuffle 315TESTS+= varmod-path 316TESTS+= varmod-quote 317TESTS+= varmod-quote-dollar 318TESTS+= varmod-range 319TESTS+= varmod-remember 320TESTS+= varmod-root 321TESTS+= varmod-select-words 322TESTS+= varmod-shell 323TESTS+= varmod-subst 324TESTS+= varmod-subst-regex 325TESTS+= varmod-sysv 326TESTS+= varmod-tail 327TESTS+= varmod-to-abs 328TESTS+= varmod-to-lower 329TESTS+= varmod-to-many-words 330TESTS+= varmod-to-one-word 331TESTS+= varmod-to-separator 332TESTS+= varmod-to-upper 333TESTS+= varmod-undefined 334TESTS+= varmod-unique 335TESTS+= varname 336TESTS+= varname-dollar 337TESTS+= varname-dot-alltargets 338TESTS+= varname-dot-curdir 339TESTS+= varname-dot-includes 340TESTS+= varname-dot-includedfromdir 341TESTS+= varname-dot-includedfromfile 342TESTS+= varname-dot-libs 343TESTS+= varname-dot-make-dependfile 344TESTS+= varname-dot-make-expand_variables 345TESTS+= varname-dot-make-exported 346TESTS+= varname-dot-make-jobs 347TESTS+= varname-dot-make-jobs-prefix 348TESTS+= varname-dot-make-level 349TESTS+= varname-dot-make-makefile_preference 350TESTS+= varname-dot-make-makefiles 351TESTS+= varname-dot-make-meta-bailiwick 352TESTS+= varname-dot-make-meta-created 353TESTS+= varname-dot-make-meta-files 354TESTS+= varname-dot-make-meta-ignore_filter 355TESTS+= varname-dot-make-meta-ignore_paths 356TESTS+= varname-dot-make-meta-ignore_patterns 357TESTS+= varname-dot-make-meta-prefix 358TESTS+= varname-dot-make-mode 359TESTS+= varname-dot-make-path_filemon 360TESTS+= varname-dot-make-pid 361TESTS+= varname-dot-make-ppid 362TESTS+= varname-dot-make-save_dollars 363TESTS+= varname-dot-makeoverrides 364TESTS+= varname-dot-newline 365TESTS+= varname-dot-objdir 366TESTS+= varname-dot-parsedir 367TESTS+= varname-dot-parsefile 368TESTS+= varname-dot-path 369TESTS+= varname-dot-shell 370TESTS+= varname-dot-targets 371TESTS+= varname-empty 372TESTS+= varname-make 373TESTS+= varname-make_print_var_on_error 374TESTS+= varname-make_print_var_on_error-jobs 375TESTS+= varname-makefile 376TESTS+= varname-makeflags 377TESTS+= varname-pwd 378TESTS+= varname-vpath 379TESTS+= varparse-dynamic 380TESTS+= varparse-errors 381TESTS+= varparse-mod 382TESTS+= varparse-undef-partial 383TESTS+= varquote 384 385# Ideas for more tests: 386# char-0020-space.mk 387# char-005C-backslash.mk 388# escape-cond-str.mk 389# escape-cond-func-arg.mk 390# escape-cond-func-arg.mk 391# escape-varmod.mk 392# escape-varmod-define.mk 393# escape-varmod-match.mk 394# escape-varname.mk 395# escape-varassign-varname.mk 396# escape-varassign-varname-cmdline.mk 397# escape-varassign-value.mk 398# escape-varassign-value-cmdline.mk 399# escape-dependency-source.mk 400# escape-dependency-target.mk 401# escape-for-varname.mk 402# escape-for-item.mk 403# posix-*.mk (see posix.mk and posix1.mk) 404 405.if ${.OBJDIR} != ${.CURDIR} 406RO_OBJDIR:= ${.OBJDIR}/roobj 407.else 408RO_OBJDIR:= ${TMPDIR:U/tmp}/roobj 409.endif 410# Additional environment variables for some of the tests. 411# The base environment is -i PATH="$PATH". 412ENV.depsrc-optional+= TZ=UTC 413ENV.envfirst= FROM_ENV=value-from-env 414ENV.objdir-writable+= RO_OBJDIR=${RO_OBJDIR} 415ENV.varmisc= FROM_ENV=env 416ENV.varmisc+= FROM_ENV_BEFORE=env 417ENV.varmisc+= FROM_ENV_AFTER=env 418ENV.varmod-localtime+= TZ=Europe/Berlin 419ENV.varname-vpath+= VPATH=varname-vpath.dir:varname-vpath.dir2 420 421# Override make flags for some of the tests; default is -k. 422# If possible, write ".MAKEFLAGS: -dv" in the test .mk file instead of 423# settings FLAGS.test=-dv here, since that is closer to the test code. 424FLAGS.cond-func-make= via-cmdline 425FLAGS.directive-ifmake= first second 426FLAGS.doterror= # none, especially not -k 427FLAGS.varname-empty= -dv '$${:U}=cmdline-u' '=cmdline-plain' 428 429# Some tests need extra postprocessing. 430SED_CMDS.export= \ 431 -e '/^[^=_A-Za-z0-9]*=/d' 432# these all share the same requirement 433.for t in export-all export-env 434SED_CMDS.$t= ${SED_CMDS.export} 435.endfor 436SED_CMDS.directive-export-gmake= \ 437 ${:D dash is a pain } \ 438 -e /non-zero/d 439SED_CMDS.job-output-long-lines= \ 440 ${:D Job separators on their own line are ok. } \ 441 -e '/^--- job-[ab] ---$$/d' \ 442 ${:D Plain output lines are ok as well. } \ 443 ${:D They may come in multiples of 1024 or as 10000. } \ 444 -e '/^aa*$$/d' \ 445 -e '/^bb*$$/d' \ 446 ${:D The following lines should rather not occur since the job } \ 447 ${:D marker should always be at the beginning of the line. } \ 448 -e '/^aa*--- job-b ---$$/d' \ 449 -e '/^bb*--- job-a ---$$/d' 450SED_CMDS.objdir-writable= -e 's,${RO_OBJDIR},OBJDIR/roobj,g' 451SED_CMDS.opt-debug-graph1= \ 452 -e 's,${.CURDIR},CURDIR,' 453SED_CMDS.opt-debug-graph1+= \ 454 -e '/Global Variables:/,/Suffixes:/d' 455SED_CMDS.sh-dots= -e 's,^.*\.\.\.:.*,<normalized: ...: not found>,' 456SED_CMDS.opt-debug-jobs= -e 's,([0-9][0-9]*),(<pid>),' 457SED_CMDS.opt-debug-jobs+= -e 's,pid [0-9][0-9]*,pid <pid>,' 458SED_CMDS.opt-debug-jobs+= -e 's,Process [0-9][0-9]*,Process <pid>,' 459SED_CMDS.opt-debug-jobs+= -e 's,JobFinish: [0-9][0-9]*,JobFinish: <pid>,' 460# The "-q" may be there or not, see jobs.c, variable shells. 461SED_CMDS.opt-debug-jobs+= -e 's,^\(.Command: sh\) -q,\1,' 462SED_CMDS.var-op-shell+= \ 463 -e 's,^${.SHELL:T}: [ 0-9:]*,,' \ 464 -e 's,^${.SHELL:T}: ,,' \ 465 -e '/command/s,No such.*,not found,' 466SED_CMDS.vardebug+= -e 's,${.SHELL},</path/to/shell>,' 467SED_CMDS.varmod-subst-regex+= \ 468 -e 's,\(Regex compilation error:\).*,\1 (details omitted),' 469SED_CMDS.varmod-edge+= -e 's, line [0-9]*:, line omitted:,' 470SED_CMDS.varname-dot-parsedir= -e '/in some cases/ s,^make: "[^"]*,make: "<normalized>,' 471SED_CMDS.varname-dot-parsefile= -e '/in some cases/ s,^make: "[^"]*,make: "<normalized>,' 472SED_CMDS.varname-dot-shell= -e 's, = /[^ ]*, = (details omitted),g' 473SED_CMDS.varname-dot-shell+= -e 's,"/[^" ]*","(details omitted)",g' 474SED_CMDS.varname-dot-shell+= -e 's,\[/[^] ]*\],[(details omitted)],g' 475 476# Some tests need an additional round of postprocessing. 477POSTPROC.deptgt-suffixes= \ 478 ${TOOL_SED} -n -e '/^\#\*\*\* Suffixes/,/^\#\*/p' 479POSTPROC.gnode-submake= awk '/Input graph/, /^$$/' 480POSTPROC.varname-empty= ${TOOL_SED} -n -e '/^Var_Set/p' -e '/^out:/p' 481 482# Some tests reuse other tests, which makes them unnecessarily fragile. 483export-all.rawout: export.mk 484unexport.rawout: export.mk 485unexport-env.rawout: export.mk 486 487# End of the configuration section. 488 489.MAIN: all 490 491UNIT_TESTS:= ${.PARSEDIR} 492.PATH: ${UNIT_TESTS} 493 494.if ${USE_ABSOLUTE_TESTNAMES:Uno} == yes 495OUTFILES= ${TESTS:@test@${.CURDIR:tA}/${test}.out@} 496.else 497OUTFILES= ${TESTS:=.out} 498.endif 499 500all: ${OUTFILES} 501 502CLEANFILES= *.rawout *.out *.status *.tmp *.core *.tmp 503CLEANFILES+= obj*.[och] lib*.a # posix1.mk 504CLEANFILES+= issue* .[ab]* # suffixes.mk 505CLEANDIRS= dir dummy # posix1.mk 506 507clean: 508 rm -f ${CLEANFILES} 509 rm -rf ${CLEANDIRS} 510 511TEST_MAKE?= ${.MAKE} 512TOOL_SED?= sed 513 514# ensure consistent results from sort(1) 515LC_ALL= C 516LANG= C 517.export LANG LC_ALL 518 519MAKE_TEST_ENV?= MALLOC_OPTIONS="JA" # for jemalloc 520 521# Each test is run in a sub-make, to keep the tests for interfering with 522# each other, and because they use different environment variables and 523# command line options. 524.SUFFIXES: .mk .rawout .out 525.mk.rawout: 526 @${_MKMSG_TEST:Uecho '# test '} ${.PREFIX} 527 @set -eu; \ 528 cd ${.OBJDIR}; \ 529 env -i PATH="$$PATH" ${MAKE_TEST_ENV} ${ENV.${.PREFIX:T}} \ 530 ${TEST_MAKE} \ 531 -r -C ${.CURDIR} -f ${.IMPSRC} \ 532 ${FLAGS.${.PREFIX:T}:U-k} \ 533 > ${.TARGET}.tmp 2>&1 \ 534 && status=$$? || status=$$?; \ 535 echo $$status > ${.TARGET:R}.status 536 @mv ${.TARGET}.tmp ${.TARGET} 537 538# Postprocess the test output so that the results can be compared. 539# 540# always pretend .MAKE was called 'make' 541_SED_CMDS+= -e 's,^${TEST_MAKE:T:S,.,\\.,g}[][0-9]*:,make:,' 542_SED_CMDS+= -e 's,${TEST_MAKE:S,.,\\.,g},make,' 543_SED_CMDS+= -e 's,${TEST_MAKE:T:S,.,\\.,g}[][0-9]* warning,make warning,' 544_SED_CMDS+= -e 's,^usage: ${TEST_MAKE:T:S,.,\\.,g} ,usage: make ,' 545# replace anything after 'stopped in' with unit-tests 546_SED_CMDS+= -e '/stopped/s, /.*, unit-tests,' 547# strip ${.CURDIR}/ from the output 548_SED_CMDS+= -e 's,${.CURDIR:S,.,\\.,g}/,,g' 549_SED_CMDS+= -e 's,${UNIT_TESTS:S,.,\\.,g}/,,g' 550 551.rawout.out: 552 @${TOOL_SED} ${_SED_CMDS} ${SED_CMDS.${.PREFIX:T}} \ 553 < ${.IMPSRC} > ${.TARGET}.tmp1 554 @${POSTPROC.${.PREFIX:T}:Ucat} < ${.TARGET}.tmp1 > ${.TARGET}.tmp2 555 @rm ${.TARGET}.tmp1 556 @echo "exit status `cat ${.TARGET:R}.status`" >> ${.TARGET}.tmp2 557 @mv ${.TARGET}.tmp2 ${.TARGET} 558 559# Compare all output files 560test: ${OUTFILES} .PHONY 561 @failed= ; \ 562 for test in ${TESTS}; do \ 563 diff -u ${UNIT_TESTS}/$${test}.exp $${test}.out \ 564 || failed="$${failed}$${failed:+ }$${test}" ; \ 565 done ; \ 566 if [ -n "$${failed}" ]; then \ 567 echo "Failed tests: $${failed}" ; false ; \ 568 else \ 569 echo "All tests passed" ; \ 570 fi 571 572accept: 573 @for test in ${TESTS}; do \ 574 cmp -s ${UNIT_TESTS}/$${test}.exp $${test}.out \ 575 || { echo "Replacing $${test}.exp" ; \ 576 cp $${test}.out ${UNIT_TESTS}/$${test}.exp ; } \ 577 done 578 579# Note: only works for adding tests. 580# To remove a test, the $$mi file must be edited manually. 581sync-mi: 582 @set -eu; \ 583 cd "${MAKEFILE:tA:H}/../../.."; \ 584 mi="distrib/sets/lists/tests/mi"; \ 585 cvs update "$$mi"; \ 586 testsdir="usr.bin/make/unit-tests"; \ 587 fmt="./usr/tests/$$testsdir/%s\ttests-usr.bin-tests\tcompattestfile,atf\\n"; \ 588 cat "$$mi" > "$$mi.tmp"; \ 589 (cd "$$testsdir" && ls *.exp *.mk) | xargs printf "$$fmt" >> "$$mi.tmp"; \ 590 distrib/sets/fmt-list "$$mi.tmp"; \ 591 mv "$$mi.tmp" "$$mi"; \ 592 cvs diff "$$mi" || true 593 594.if exists(${TEST_MAKE}) 595${TESTS:=.rawout}: ${TEST_MAKE} 596# in meta mode, we *know* if a target script is impacted 597# by a makefile change. 598.if ${.MAKE.MODE:Unormal:Mmeta} == "" 599${TESTS:=.rawout}: ${.PARSEDIR}/Makefile 600.endif 601.endif 602 603.-include <bsd.obj.mk> 604