diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-05-14 04:47:12 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-05-14 05:38:59 +0200 |
commit | 6a88f32eea3850d58411b854ba102a2baa978158 (patch) | |
tree | 427a5d1b474a66843fb09a32591e48c1ed14e462 /Makefile | |
parent | 32b6793b210505a2a69dc6f7615ddd5f66ad74b8 (diff) | |
download | vyos-1x-6a88f32eea3850d58411b854ba102a2baa978158.tar.gz vyos-1x-6a88f32eea3850d58411b854ba102a2baa978158.zip |
T633: build integration and minor fixes in the op mode command generator.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -1,4 +1,5 @@ -TMPL_DIR := templates +TMPL_DIR := templates-cfg +OP_TMPL_DIR := templates-op .PHONY: interface_definitions .ONESHELL: @@ -13,9 +14,22 @@ interface_definitions: rm -f $(TMPL_DIR)/service/dns/node.def rm -f $(TMPL_DIR)/protocols/node.def +.PHONY: op_mode_definitions +.ONESHELL: +op_mode_definitions: + mkdir -p $(OP_TMPL_DIR) + + find $(CURDIR)/op-mode-definitions/ -type f | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) + + # XXX: delete top level op mode node.def's that now live in other packages + rm -f $(OP_TMPL_DIR)/show/node.def + rm -f $(OP_TMPL_DIR)/reset/node.def + rm -f $(OP_TMPL_DIR)/restart/node.def + .PHONY: all -all: interface_definitions +all: interface_definitions op_mode_definitions .PHONY: clean clean: rm -rf $(TMPL_DIR)/* + rm -rf $(OP_TMPL_DIR)/* |