PYANG_OPTIONS := -Werror
-all: $(PYTHON_MODELS) pyangbind
+all: $(PYTHON_MODELS) pyangbind trees
$(MAKE) package
trees: $(YANG_DESC_TREES) $(YANG_DESC_JSTREES) $(YANG_RECORD_TREES) $(YANG_RECORD_JSTREES)
%.html: $(TREES_DIR)
$(Q)echo generating $@ from $*.yang
$(Q)pyang $(PYANG_OPTIONS) --path build/yang --path $(MODEL_DIR) -f jstree -o $(TREES_DIR)/$@ $(MODEL_DIR)/$*.yang
+ $(Q)sed -r -i 's|data\:image/gif\;base64,R0lGODlhS.*RCAA7|https://osm.etsi.org/images/OSM-logo.png\" width=\"175\" height=\"60|g' $(TREES_DIR)/$@
+ $(Q)sed -r -i 's|<a href=\"http://www.tail-f.com">|<a href="http://osm.etsi.org">|g' $(TREES_DIR)/$@
%.rec.tree.txt: $(TREES_DIR)
$(Q)echo generating $@ from $*.yang
%.rec.html: $(TREES_DIR)
$(Q)echo generating $@ from $*.yang
$(Q)pyang $(PYANG_OPTIONS) --path build/yang --path $(MODEL_DIR) -f jstree -o $(TREES_DIR)/$@ $(MODEL_DIR)/rw-project.yang $(MODEL_DIR)/$*.yang
+ $(Q)sed -r -i 's|data\:image/gif\;base64,R0lGODlhS.*RCAA7|https://osm.etsi.org/images/OSM-logo.png\" width=\"175\" height=\"60|g' $(TREES_DIR)/$@
+ $(Q)sed -r -i 's|<a href=\"http://www.tail-f.com">|<a href="http://osm.etsi.org">|g' $(TREES_DIR)/$@
$(Q)mv $(TREES_DIR)/$@ $(TREES_DIR)/$*.html
$(RW_PB_EXT):
tox -e build
pyangbind: pyang
- git clone https://github.com/robshakir/pyangbind
- cd pyangbind; python setup.py --command-packages=stdeb.command bdist_deb; cd ..
+ git clone https://github.com/alf-tierno/pyangbind
+ cd pyangbind; git checkout issue151; python setup.py --command-packages=stdeb.command bdist_deb; cd ..
mkdir -p deb_dist
cp pyangbind/deb_dist/*.deb deb_dist