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"
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"
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"
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"
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"
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"