Split & move codegen tasks to codegen/Makefile

This commit is contained in:
Denis Arh
2022-03-18 08:41:07 +01:00
parent 1931534c52
commit 9b5586719e
21 changed files with 574 additions and 483 deletions
+18
View File
@@ -0,0 +1,18 @@
.PHONY: *.cue
DEF_ALL = *.cue
DEF_SERVER = server.*.cue
DEF_DOCS = docs.*.cue
all: $(DEF_ALL)
server: $(DEF_SERVER)
docs: $(DEF_DOCS)
include ../Makefile.inc
$(DEF_ALL): $(CUE) $(JSONTPLEXEC)
@ echo "$(COLOUR_GREEN)Generating from $@$(COLOUR_END)"
@ $(CUE) eval $@ --out json | $(JSONTPLEXEC) -v -p ../codegen/assets/templates -b ../
gen:
@ rm $(JSONTPLEXEC)