summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4cc1460..edbf455 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
PROG=asteroids
CC=gcc
-FLAGS=-lm `pkg-config -libs raylib`
+FLAGS=-lm -lraylib
-.DEFAULT_GOAL := run
+.DEFAULT_GOAL := install
${PROG}: ${PROG}.c
${CC} ${PROG}.c -o ${PROG} ${FLAGS}
-run: ${PROG}
- ./${PROG}
+install: ${PROG}
+ cp ${PROG} ~/.local/bin/
+clean: ${PROG}
+ rm ${PROG}