1
0
raylib-example-indexer/Makefile

21 lines
543 B
Makefile
Raw Normal View History

2023-08-26 11:45:05 +00:00
BUILD_DIR := build
2023-08-19 14:53:51 +00:00
2023-08-26 11:45:05 +00:00
.DEFAULT_GOAL := all
.PHONY := raylib_example_indexer all clean
2023-08-19 14:53:51 +00:00
2023-08-26 11:45:05 +00:00
example_indexer: src/main.c
mkdir -p $(BUILD_DIR)
gcc src/main.c -o $(BUILD_DIR)/example_indexer -I./external -DSTB_C_LEXER_IMPLEMENTATION
2023-08-19 14:53:51 +00:00
2023-08-26 11:45:05 +00:00
$(BUILD_DIR)/raylib:
mkdir -p $(BUILD_DIR)
git clone git@github.com:raysan5/raylib.git $(BUILD_DIR)/raylib
2023-08-19 14:53:51 +00:00
2023-08-26 11:45:05 +00:00
run: example_indexer
./$(BUILD_DIR)/example_indexer $(BUILD_DIR)/raylib/src $(BUILD_DIR)/raylib/examples $(BUILD_DIR)/output.json
2023-08-19 14:53:51 +00:00
2023-08-26 11:45:05 +00:00
all: $(BUILD_DIR)/raylib example_indexer run
2023-08-19 14:53:51 +00:00
clean:
2023-08-26 11:45:05 +00:00
rm -rf $(BUILD_DIR)