You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
476 B
28 lines
476 B
YML_PATH+=:../../idl
|
|
COMPILER=../../lm-c99/ig-c99.ysl2
|
|
BUILD_DIR=ig-c99
|
|
|
|
SRC=$(wildcard *.yml2)
|
|
SRC_XML=$(addsuffix .xml, $(basename $(SRC)))
|
|
|
|
|
|
.PHONY: all xml compile clean
|
|
all: xml compile
|
|
|
|
compile: $(BUILD_DIR)/*
|
|
|
|
xml: $(SRC_XML)
|
|
|
|
$(BUILD_DIR)/*: $(BUILD_DIR) $(SRC) $(COMPILER)
|
|
YML_PATH=$(YML_PATH) yml2proc -y $(COMPILER) $(SRC)
|
|
|
|
$(BUILD_DIR):
|
|
mkdir $(BUILD_DIR)
|
|
|
|
%.xml: %.yml2
|
|
YML_PATH=$(YML_PATH) yml2proc -P $< -o $@
|
|
|
|
clean:
|
|
rm -rf \
|
|
./$(BUILD_DIR) \
|
|
$(SRC_XML)
|
|
|