-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
begin conceptual merge from Issue-14 branch
Co-authored-by: DanielPuthawala <[email protected]>
- Loading branch information
1 parent
2774737
commit 04f5862
Showing
8 changed files
with
420 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.