summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2008-03-12 14:50:58 +0000
committerobrien <obrien@FreeBSD.org>2008-03-12 14:50:58 +0000
commit7658c18ee933f8903295380209083dfdd36078f9 (patch)
tree167ef509c912d8665e1544a453ee24ee71bc9af6 /usr.bin/make/parse.c
parentf2e5e0ae4524d1a3d5058c7486915c7904b59944 (diff)
downloadFreeBSD-src-7658c18ee933f8903295380209083dfdd36078f9.zip
FreeBSD-src-7658c18ee933f8903295380209083dfdd36078f9.tar.gz
If the special target .MAKEFILEDEPS exists, then enable the
"remaking makefiles" feature. Otherwise, follow traditional Pmake behavior. (hash table will be regenerated and committed follow this commit)
Diffstat (limited to 'usr.bin/make/parse.c')
-rw-r--r--usr.bin/make/parse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 14ffe18..3e8cb93 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -168,6 +168,7 @@ typedef enum {
ExPath, /* .PATH */
Phony, /* .PHONY */
Posix, /* .POSIX */
+ MakefileDeps, /* .MAKEFILEDEPS */
Precious, /* .PRECIOUS */
ExShell, /* .SHELL */
Silent, /* .SILENT */
@@ -213,6 +214,7 @@ static const struct keyword {
{ ".LIBS", Libs, 0 },
{ ".MAIN", Main, 0 },
{ ".MAKE", Attribute, OP_MAKE },
+ { ".MAKEFILEDEPS", MakefileDeps, 0 },
{ ".MAKEFLAGS", MFlags, 0 },
{ ".MFLAGS", MFlags, 0 },
{ ".NOTMAIN", Attribute, OP_NOTMAIN },
@@ -1069,6 +1071,9 @@ ParseDoDependency(char *line)
LST_FOREACH(ln, &paths)
Path_Clear(Lst_Datum(ln));
break;
+ case MakefileDeps:
+ mfAutoDeps = TRUE;
+ break;
case Posix:
is_posix = TRUE;
Var_Set("%POSIX", "1003.2", VAR_GLOBAL);
OpenPOWER on IntegriCloud