From 5ffc6bb5c20651bf16cec86433e2470014fbb823 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 18 May 2018 16:54:43 +0200 Subject: Make makefile targets for building command definitions fail properly unless all definitions are processed successfully. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cec6d7076..05695705a 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ OP_TMPL_DIR := templates-op interface_definitions: mkdir -p $(TMPL_DIR) - find $(CURDIR)/interface-definitions/ -type f | xargs -I {} $(CURDIR)/scripts/build-command-templates {} $(CURDIR)/schema/interface_definition.rng $(TMPL_DIR) + find $(CURDIR)/interface-definitions/ -type f | xargs -I {} $(CURDIR)/scripts/build-command-templates {} $(CURDIR)/schema/interface_definition.rng $(TMPL_DIR) || exit 1 # XXX: delete top level node.def's that now live in other packages rm -f $(TMPL_DIR)/system/node.def @@ -19,7 +19,7 @@ interface_definitions: 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) + find $(CURDIR)/op-mode-definitions/ -type f | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1 # XXX: delete top level op mode node.def's that now live in other packages rm -f $(OP_TMPL_DIR)/show/node.def -- cgit v1.2.3