summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0634145..7b8e0ed 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
+# Paths
+prefix = $(HOME)
+BINDIR = ${prefix}/bin
+DESTDIR =
+
CC := gcc
CFLAGS := -Wall -D_USE_SOURCE
+INSTALL := install
+
DEBUG = false
ifeq ($(strip $(DEBUG)),true)
@@ -20,6 +27,9 @@ simpletail: simpletail.o
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
+install: simpletail
+ ${INSTALL} -m 775 simpletail ${DESTDIR}${BINDIR}
+
clean:
rm -f *.o
rm -f $(PROGRAMS)