summaryrefslogtreecommitdiffhomepage
path: root/tools/example-indexer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/example-indexer/Makefile')
-rw-r--r--tools/example-indexer/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/example-indexer/Makefile b/tools/example-indexer/Makefile
new file mode 100644
index 0000000..0dce0c2
--- /dev/null
+++ b/tools/example-indexer/Makefile
@@ -0,0 +1,20 @@
+BUILD_DIR := build
+
+.DEFAULT_GOAL := all
+.PHONY := raylib_example_indexer all clean
+
+example_indexer: main.c
+ mkdir -p $(BUILD_DIR)
+ gcc main.c -o $(BUILD_DIR)/example_indexer -DSTB_C_LEXER_IMPLEMENTATION
+
+$(BUILD_DIR)/raylib:
+ mkdir -p $(BUILD_DIR)
+ git clone [email protected]:raysan5/raylib.git $(BUILD_DIR)/raylib
+
+run: example_indexer
+ ./$(BUILD_DIR)/example_indexer $(BUILD_DIR)/raylib/src $(BUILD_DIR)/raylib/examples $(BUILD_DIR)/output.json
+
+all: $(BUILD_DIR)/raylib example_indexer run
+
+clean:
+ rm -rf $(BUILD_DIR)