summaryrefslogtreecommitdiff
path: root/Makefile
blob: 43549fc056ada90e7e1493a9e34bf6a2ef5c3350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
	rm $(TMPL_DIR)/system/node.def

.PHONY: all
all: interface_definitions

.PHONY: clean
clean:
	rm -rf $(TMPL_DIR)/*