mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 01:49:48 +00:00
[#3731] Fix grammar target in Meson
This commit is contained in:
parent
3235ac2bce
commit
7d8f8fd807
@ -7,15 +7,17 @@ set -euv
|
||||
|
||||
cd @TOP_SOURCE_DIR@
|
||||
|
||||
extract_bnf="@TOP_BUILD_DIR@/tools/extract_bnf.sh"
|
||||
|
||||
mkdir -p doc/sphinx/grammar
|
||||
|
||||
./tools/extract_bnf.sh src/bin/dhcp4/dhcp4_parser \
|
||||
"${extract_bnf}" src/bin/dhcp4/dhcp4_parser \
|
||||
--markdown ':ref:`dhcp4`' > doc/sphinx/grammar/grammar-dhcp4-parser.rst
|
||||
./tools/extract_bnf.sh src/bin/dhcp6/dhcp6_parser \
|
||||
"${extract_bnf}" src/bin/dhcp6/dhcp6_parser \
|
||||
--markdown ':ref:`dhcp6`' > doc/sphinx/grammar/grammar-dhcp6-parser.rst
|
||||
./tools/extract_bnf.sh src/bin/d2/d2_parser \
|
||||
"${extract_bnf}" src/bin/d2/d2_parser \
|
||||
--markdown ':ref:`dhcp-ddns-server`' > doc/sphinx/grammar/grammar-d2-parser.rst
|
||||
./tools/extract_bnf.sh src/bin/agent/agent_parser \
|
||||
"${extract_bnf}" src/bin/agent/agent_parser \
|
||||
--markdown ':ref:`kea-ctrl-agent`' > doc/sphinx/grammar/grammar-ca-parser.rst
|
||||
./tools/extract_bnf.sh src/bin/netconf/netconf_parser \
|
||||
"${extract_bnf}" src/bin/netconf/netconf_parser \
|
||||
--markdown ':ref:`netconf`' > doc/sphinx/grammar/grammar-netconf-parser.rst
|
||||
|
@ -94,6 +94,9 @@ install_data(examples, preserve_path: true, install_dir: 'share/doc/kea')
|
||||
make_grammar = configure_file(
|
||||
input: 'make-grammar.sh.in',
|
||||
output: 'make-grammar.sh',
|
||||
configuration: {'TOP_SOURCE_DIR': TOP_SOURCE_DIR},
|
||||
configuration: {
|
||||
'TOP_BUILD_DIR': TOP_BUILD_DIR,
|
||||
'TOP_SOURCE_DIR': TOP_SOURCE_DIR,
|
||||
},
|
||||
)
|
||||
run_target('grammar', command: [make_grammar])
|
||||
|
Loading…
x
Reference in New Issue
Block a user