]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1467] Fix Makefile parser generation race
authorAndrei Pavel <andrei@isc.org>
Mon, 12 Oct 2020 21:14:17 +0000 (00:14 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 30 Oct 2020 14:46:29 +0000 (14:46 +0000)
src/bin/agent/Makefile.am
src/bin/d2/Makefile.am
src/bin/dhcp4/Makefile.am
src/bin/dhcp6/Makefile.am
src/bin/netconf/Makefile.am
src/lib/eval/Makefile.am

index 8ddeabe3bd9d535e5d0829fe2bdc3fd680a84f4b..5b7116004cd873457202efaabf0d0622becc3ea1 100644 (file)
@@ -96,6 +96,9 @@ endif
 
 if GENERATE_PARSER
 
+# Generate parser first.
+all-recursive: agent_lexer.cc location.hh position.hh stack.hh agent_parser.cc agent_parser.h
+
 parser: agent_lexer.cc location.hh position.hh stack.hh agent_parser.cc agent_parser.h
        @echo "Flex/bison files regenerated"
 
index 24ff5a557adb214a2109378c0eeba29ce714c3a0..04cd5cb56aee7bf0504366f8c91685b77bfe3a9b 100644 (file)
@@ -114,6 +114,9 @@ endif
 
 if GENERATE_PARSER
 
+# Generate parser first.
+all-recursive: d2_lexer.cc location.hh position.hh stack.hh d2_parser.cc d2_parser.h
+
 parser: d2_lexer.cc location.hh position.hh stack.hh d2_parser.cc d2_parser.h
        @echo "Flex/bison files regenerated"
 
index 82d8e8a40f5d0b6d8f64a566d96bdb728fdc7fcc..29db262cace288ae6f43464fd79ebfbcb9558509 100644 (file)
@@ -126,6 +126,9 @@ endif
 
 if GENERATE_PARSER
 
+# Generate parser first.
+all-recursive: dhcp4_lexer.cc location.hh position.hh stack.hh dhcp4_parser.cc dhcp4_parser.h
+
 parser: dhcp4_lexer.cc location.hh position.hh stack.hh dhcp4_parser.cc dhcp4_parser.h
        @echo "Flex/bison files regenerated"
 
index 668f3d0c5e3e4d0e7080ad24465663f524e25130..291d40e7acfed420c8cd52b7d2787d11d6fb9b3a 100644 (file)
@@ -125,6 +125,9 @@ endif
 
 if GENERATE_PARSER
 
+# Generate parser first.
+all-recursive: dhcp6_lexer.cc location.hh position.hh stack.hh dhcp6_parser.cc dhcp6_parser.h
+
 parser: dhcp6_lexer.cc location.hh position.hh stack.hh dhcp6_parser.cc dhcp6_parser.h
        @echo "Flex/bison files regenerated"
 
index 1dbd9346d0d6164bf476d367f463facd3702877c..1f2220cf576da73849f02c9854333f0fd17776eb 100644 (file)
@@ -97,6 +97,9 @@ endif
 
 if GENERATE_PARSER
 
+# Generate parser first.
+all-recursive: netconf_lexer.cc location.hh position.hh stack.hh netconf_parser.cc netconf_parser.h
+
 parser: netconf_lexer.cc location.hh position.hh stack.hh netconf_parser.cc netconf_parser.h
        @echo "Flex/bison files regenerated"
 
index c7219ce5924c52fc70e268dc35f6883c449579f0..8b9e94b58d713588a79a38b41ebff7ce44b269ff 100644 (file)
@@ -99,6 +99,9 @@ parser-clean:
 
 if GENERATE_PARSER
 
+# Generate parser first.
+all-recursive: lexer.cc location.hh position.hh stack.hh parser.cc parser.h
+
 parser: lexer.cc location.hh position.hh stack.hh parser.cc parser.h
        @echo "Flex/bison files regenerated"