Makefile 419 Bytes
Newer Older
mrazekales's avatar
mrazekales committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
MODULES = cznic-resolver-common cznic-resolver-knot cznic-deckard
DATE ?= $(shell date +%F)

xsldir = ../../yangson/tools/xslt
yypars = --stringparam date $(DATE)
yams = $(addsuffix .yang, $(MODULES))

.PHONY: all

all: $(yams)

%.yang: %.yinx
	@xsltproc --xinclude $(xsldir)/canonicalize.xsl $< | \
	  xsltproc --output $@ $(yypars) $(xsldir)/yin2yang.xsl -

model.tree: $(yams)
	@pyang $(PYANG_OPTS) -f tree -o $@ $^