-
Notifications
You must be signed in to change notification settings - Fork 4
Make
Ladislav Lhotka edited this page Feb 17, 2016
·
3 revisions
The Makefile
uses scripts from the
pyang suite, so the following
environment variables need to be set properly: PYANG_RNG_LIBDIR
,
PYANG_XSLT_DIR
and YANG_MODPATH
. They can either be passed from
the outer shell environment (i.e. configured in shell startup scripts
such as ~/.profile
), but they can also be set in the Makefile
. The
values from the outer environment (if present) override the Makefile
settings.
The revision of the Internet-Draft identified by the value of the
REVNO
Makefile variable (both XML and text formats) is generated by
simply running
$ make
This command also produces:
-
model.tree
– a file containing the tree diagram of the data model, - DSDL schemas (RELAX NG, Schematron and DSRL) that can be used for validating the XML instance document.
Other useful Makefile targets are:
-
validate
: perform validation of the example XML instance document against the DSDL schemas. -
rnc
: generate RELAX NG schema of the data model in the compact notation. This can be used, for example, with the Emacs nXML mode. -
clean
: remove all files generated bymake
.