basic makefile

This commit is contained in:
array-in-a-matrix 2022-11-15 11:06:52 -05:00
parent 22918fae5d
commit 3238c0f132

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
BUILD_DIR := bin/
SOURCE_DIR := src/
all:
nim compile --out:$(BUILD_DIR) $(SOURCE_DIR)*.nim
release:
nim compile --define:release --out:$(BUILD_DIR) $(SOURCE_DIR)*.nim
run:
@$(BUILD_DIR)main
clean:
@rm -rf $(BUILD_DIR)
clear: clean