summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-09-08 07:40:14 +0200
committerDaniil Baturin <daniil@baturin.org>2017-09-08 07:40:14 +0200
commit67ff7166a77a6d7c0eb5d01615898e353588c4bf (patch)
tree14c87e9801f6689c90175f845c6a6a6816d69409 /Makefile
parent8a14d554c7de6fe0e238b55b9acf235a35714198 (diff)
downloadvyos-1x-67ff7166a77a6d7c0eb5d01615898e353588c4bf.tar.gz
vyos-1x-67ff7166a77a6d7c0eb5d01615898e353588c4bf.zip
Make the makefile create the templates dir if it doesn't exist.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3da3a369f..43549fc05 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ TMPL_DIR := templates
.PHONY: interface_definitions
.ONESHELL:
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)
# XXX: delete top level node.def's that now live in other packages