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.
 

30 lines
538 B

YML_PATH+=:../../../idl
COMPILER=../../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)
diff $(BUILD_DIR)/test_api.h $(BUILD_DIR)/test_api.h.target
$(BUILD_DIR):
mkdir $(BUILD_DIR)
%.xml: %.yml2
YML_PATH=$(YML_PATH) yml2proc -P $< -o $@
clean:
rm -rf \
./$(BUILD_DIR)/*.h \
$(SRC_XML)