summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-01-07 15:06:54 +0200
committerDaniil Baturin <daniil@vyos.io>2021-01-07 15:06:54 +0200
commit5b22ebae3ef729a385dd7c9c5d9beb8f2e250fff (patch)
treece64a4d861aac67dad0724ab3be344e6d2c981e9 /Makefile
parent04a02d938dc2975eac240819f930e4f047cc0e97 (diff)
downloadvyos-1x-5b22ebae3ef729a385dd7c9c5d9beb8f2e250fff.tar.gz
vyos-1x-5b22ebae3ef729a385dd7c9c5d9beb8f2e250fff.zip
T3170: check if any generated node.def files are empty.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 588595e42..beaac80a7 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,8 @@ interface_definitions: $(BUILD_DIR) $(obj)
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ip/node.def $(TMPL_DIR)/interfaces/vti/node.tag/ip
cp $(TMPL_DIR)/interfaces/ethernet/node.tag/ipv6/node.def $(TMPL_DIR)/interfaces/vti/node.tag/ipv6
+ find $(TMPL_DIR) -name node.def -empty && sh -c 'echo "There are empty node.def files! Check your interface definitions." && exit 1'
+
.PHONY: op_mode_definitions
.ONESHELL:
op_mode_definitions:
@@ -85,6 +87,8 @@ op_mode_definitions:
# options are provided from the script itself
ln -s ../node.tag $(OP_TMPL_DIR)/ping/node.tag/node.tag/
+ find $(op_TMPL_DIR) -name node.def -empty && sh -c 'echo "There are empty node.def files! Check your interface definitions." && exit 1'
+
.PHONY: component_versions
.ONESHELL:
component_versions: $(BUILD_DIR) $(obj)