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.
32 lines
595 B
32 lines
595 B
YML_PATH+=:../
|
|
COMPILER=test_api.ysl2
|
|
BUILD_DIR=output
|
|
|
|
SRC=$(wildcard *.yml2)
|
|
SRC_XML=$(addsuffix .xml, $(basename $(SRC)))
|
|
|
|
|
|
.PHONY: all xml compile clean
|
|
all: xml compile
|
|
|
|
compile: $(BUILD_DIR)/*
|
|
|
|
xml: $(SRC_XML)
|
|
|
|
check:
|
|
YML_PATH=$(YML_PATH) yml2proc -y ../idl_check.ysl2 $(SRC)
|
|
|
|
$(BUILD_DIR)/*: $(BUILD_DIR) $(SRC) $(COMPILER)
|
|
YML_PATH=$(YML_PATH) yml2proc -y $(COMPILER) $(SRC)
|
|
diff $(BUILD_DIR)/typesys.out $(BUILD_DIR)/typesys.out.target
|
|
|
|
$(BUILD_DIR):
|
|
mkdir $(BUILD_DIR)
|
|
|
|
%.xml: %.yml2
|
|
YML_PATH=$(YML_PATH) yml2proc -P $< -o $@
|
|
|
|
clean:
|
|
rm -rf \
|
|
./$(BUILD_DIR)/*.out \
|
|
$(SRC_XML)
|
|
|