summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/makefile b/makefile
index d960944..7df79be 100644
--- a/makefile
+++ b/makefile
@@ -11,7 +11,7 @@ CFLAGS := -Wall
LDFLAGS := -Llib
LDLIBS := -lm
-.PHONY: all clean run format
+.PHONY: all clean run format install
all: $(EXE)
@@ -34,5 +34,8 @@ format:
clang-format -i --style=Microsoft src/*.c
clang-format -i --style=Microsoft inc/*.h
+install: $(EXE)
+ cp $(EXE) ~/.local/bin
+
-include $(OBJ:.o=.d)