summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1555111..f1c9064 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
CC=gcc
CFLAGS=-I. -pthread
+DESTDIR=/usr/local/bin
+
generate:
$(CC) -o snake snake.c vector.c $(CFLAGS)
install:
- cp snake /usr/local/bin
+ cp snake $(DESTDIR)
clean:
rm snake