Set default true to 'port-security-enable'
[osm/IM.git] / Makefile
index 62643b0..706bab4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ Q?=@
 
 PYANG_OPTIONS := -Werror
 
 
 PYANG_OPTIONS := -Werror
 
-all: $(PYTHON_MODELS) pyangbind $(PYTHON_JSONSCHEMAS)
+all: $(PYTHON_MODELS) pyangbind
        $(MAKE) package
 
 $(OUT_DIR):
        $(MAKE) package
 
 $(OUT_DIR):
@@ -52,12 +52,20 @@ $(RW_PB_EXT):
 package:
        tox -e build
 
 package:
        tox -e build
 
-pyangbind:
+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/robshakir/pyangbind
        cd pyangbind; python setup.py --command-packages=stdeb.command bdist_deb; cd ..
+       mkdir -p deb_dist
+       cp pyangbind/deb_dist/*.deb deb_dist
+
+pyang:
+       git clone https://github.com/mbj4668/pyang
+       cd pyang; python setup.py --command-packages=stdeb.command bdist_deb; cd ..
+       mkdir -p deb_dist
+       cp pyang/deb_dist/*.deb deb_dist
 
 pyang-json-schema-plugin:
        git clone https://github.com/cmoberg/pyang-json-schema-plugin
 
 clean:
 
 pyang-json-schema-plugin:
        git clone https://github.com/cmoberg/pyang-json-schema-plugin
 
 clean:
-       $(Q)rm -rf build dist osm_im.egg-info deb deb_dist *.gz pyangbind $(OUT_DIR)
+       $(Q)rm -rf build dist osm_im.egg-info deb deb_dist *.gz pyang pyangbind pyang-json-schema-plugin $(OUT_DIR)