summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-09-07 03:27:55 +0200
committerDaniil Baturin <daniil@baturin.org>2017-09-07 03:27:55 +0200
commit41752cbef7b9e647feaa4a889c29fe76ca3a4c9f (patch)
tree7ad4bc50921dff36fa59474e4d07215fc347c13a /Makefile
parent08ecdea5e7b838e94b6654eb165f0f652ebbb584 (diff)
downloadvyos-1x-41752cbef7b9e647feaa4a889c29fe76ca3a4c9f.tar.gz
vyos-1x-41752cbef7b9e647feaa4a889c29fe76ca3a4c9f.zip
Add interface definition for cron and enable templates building in the makefiles.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..2c7b28c56
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+TMPL_DIR := templates
+
+.PHONY: interface_definitions
+.ONESHELL:
+interface_definitions:
+ find $(CURDIR)/interface-definitions/ -type f | xargs -I {} $(CURDIR)/scripts/build-command-templates {} $(CURDIR)/schema/interface_definition.rng $(TMPL_DIR)
+
+.PHONY: all
+all: interface_definitions
+
+.PHONY: clean
+clean:
+ rm -rf $(TMPL_DIR)/*