Skip to content

Commit

Permalink
begin conceptual merge from Issue-14 branch
Browse files Browse the repository at this point in the history
Co-authored-by: DanielPuthawala <[email protected]>
  • Loading branch information
ahwagner and DanielPuthawala committed Sep 9, 2024
1 parent 2774737 commit 04f5862
Show file tree
Hide file tree
Showing 8 changed files with 420 additions and 470 deletions.
47 changes: 7 additions & 40 deletions schema/cat-vrs/Makefile
Original file line number Diff line number Diff line change
@@ -1,44 +1,11 @@
.SECONDARY:
.DELETE_ON_ERROR:
all: core profiles

BUILD_DIR := build
DEF_DIR := def
JSON_DIR := json
IMPORT_DIR := import
profiles:
(cd profiles; make all)

vpath %tag $(BUILD_DIR)
vpath %.classes $(BUILD_DIR)

SOURCES := $(wildcard *-source.yaml)
TAGS := $(SOURCES:-source.yaml=.tag)
IMPORTS := $(wildcard $(IMPORT_DIR)/*-source.yaml)

all: build-ordered ${TAGS} prune-tag

build-ordered: | $(BUILD_DIR)

$(BUILD_DIR):
mkdir $(BUILD_DIR)

%.tag: %.classes %.json-tag %.defs-tag
touch $(BUILD_DIR)/$@

%.classes: %-source.yaml
source2classes $< >${BUILD_DIR}/$@

%.json-tag: %-source.yaml ${IMPORTS}
source2splitjs $<
touch $(BUILD_DIR)/$@

%.defs-tag: %-source.yaml ${IMPORTS}
y2t $<
touch $(BUILD_DIR)/$@

prune-tag: ${TAGS}
$(MAKE) -f prune.mk
touch $(BUILD_DIR)/$@
core:
(cd core; make all)

clean:
rm $(BUILD_DIR)/*
rm $(DEF_DIR)/*
rm $(JSON_DIR)/*
(cd profiles; make clean)
(cd core; make clean)
Loading

0 comments on commit 04f5862

Please sign in to comment.