aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-02-05 21:49:43 +0000
committerGuy Harris <guy@alum.mit.edu>2013-02-05 21:49:43 +0000
commit39dd49ee2a24e6a136f519fc82e5d970f2d72e9c (patch)
tree92de75e406526d54c2ba126c794748588552cd85 /plugins
parentfebbfac792fd15bc1e5a450fd32e8812a6fb4df7 (diff)
mate_parser.obj depends on mate_grammar.h, as it's built from
mate_parser.c and mate_parser.c includes mate_grammar.h, so we need to make sure mate_grammar.h is built before we try to compile mate_parser.c. However, mate_parser.obj isn't built by trying to compile mate_grammar.h, so don't use $? in the $(CC) line, as that will cause it to try to compile *all* the dependencies. Add a comment to explain why mate_parser_lex.h depends on mate_parser.c. svn path=/trunk/; revision=47504
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mate/Makefile.nmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mate/Makefile.nmake b/plugins/mate/Makefile.nmake
index 3c20c8757e..2a3c958dad 100644
--- a/plugins/mate/Makefile.nmake
+++ b/plugins/mate/Makefile.nmake
@@ -142,10 +142,15 @@ maintainer-clean: distclean
RUNLEX = ..\..\tools\runlex.sh
+#
+# In order to generate mate_parser_lex.h, we need to run Flex on
+# mate_parser.l; that's done by generating mate_parser.c.
+#
mate_parser_lex.h : mate_parser.c
+
mate_parser.obj : mate_grammar.h
mate_parser.obj : mate_parser.c
- $(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
+ $(CC) $(GENERATED_CFLAGS) -Fd.\ -c mate_parser.c
mate_grammar.h : mate_grammar.c
mate_grammar.c : mate_grammar.lemon $(LEMON)\lemon.exe