summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-02-16 15:45:01 +0100
committerGitHub <noreply@github.com>2026-02-16 15:45:01 +0100
commit33752c9a41f2e79c1ef3884188968d0f48bc79d8 (patch)
treeb309b02d15d913709a88bf120551e511559459a1 /Makefile
parent2bf396b489f89ee76d8f8ad6633bcea0aac82e26 (diff)
parent93a5c32c0d473a8318e9733ce8ded544961a6a27 (diff)
downloadvyos-1x-33752c9a41f2e79c1ef3884188968d0f48bc79d8.tar.gz
vyos-1x-33752c9a41f2e79c1ef3884188968d0f48bc79d8.zip
Merge pull request #4991 from c-po/policy-xml-cleanup
xml: T8271: cleanup duplicate includes and split duplicate code into new building blocks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0bc848192..a11648e46 100644
--- a/Makefile
+++ b/Makefile
@@ -28,8 +28,8 @@ libvyosconfig:
.PHONY: interface_definitions
.ONESHELL:
-interface_definitions: $(config_xml_obj)
- mkdir -p $(TMPL_DIR)
+interface_definitions: libvyosconfig $(config_xml_obj)
+ rm -rf $(TMPL_DIR); mkdir -p $(TMPL_DIR)
$(CURDIR)/scripts/override-default $(BUILD_DIR)/interface-definitions
@@ -58,7 +58,7 @@ endif
.PHONY: op_mode_definitions
.ONESHELL:
op_mode_definitions: $(op_xml_obj)
- mkdir -p $(OP_TMPL_DIR)
+ rm -rf $(OP_TMPL_DIR); mkdir -p $(OP_TMPL_DIR)
find $(BUILD_DIR)/op-mode-definitions/ -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1