summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidovski <david@sendula.com>2021-04-24 15:21:14 +0100
committerdavidovski <david@sendula.com>2021-04-24 15:21:14 +0100
commitf292188965e3444cf84d25a13693bc863787f4a1 (patch)
tree7094e9af0f030ed1320788c9f8df6a7bf2b7e858 /Makefile
parent925e5e56aca94018cf714803e43b2c04fc440a57 (diff)
modified makefile
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}