summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ace1cb4..3e80f29 100755
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
# Big kram's stats app
#clear ; vim main.c ; gcc main.c -Wall -Wextra -Wpedantic -std=c99 -o stats
+PREFIX = /usr/local
+
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os
CC = gcc
@@ -11,3 +13,10 @@ all:
${CC} ${CFLAGS} ${SRC} -o stats
.PHONY: all clean dist install uninstall
+
+install: all
+ ${CC} ${CFLAGS} ${SRC} -o stats
+ cp -f stats ${PREFIX}/bin
+ chmod 755 ${DESTDIR}${PREFIX}/bin/stats
+
+