summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-06-08 15:25:32 +0300
committereug-vs <eug-vs@keemail.me>2021-06-08 15:25:32 +0300
commit7accae778e7f06317c3aa8d4c2fcdaa24cb1c093 (patch)
treeee55b3687f568fc4e8ed2667fd69f290592ca96b /Makefile
parent8162253d751a8b2037757f0ef6139f93ef6cef0d (diff)
downloadc-chess-7accae778e7f06317c3aa8d4c2fcdaa24cb1c093.tar.gz
chore: use run as default make command
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 10e7c66..d940580 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,11 @@ OBJECTS=$(patsubst $(SRC)/%.c, $(OBJ)/%.o, $(SOURCES))
BIN=main
+run: $(BIN)
+ ./$(BIN)
+
+build: $(BIN)
+
$(BIN): $(OBJECTS)
$(CC) $(OBJECTS) -o $(BIN)