summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-04-12 16:38:49 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-04-12 16:38:49 +0200
commitcfa4b3b11a287d3713dd015d1a9ed8cac1544cfd (patch)
treeb0d6269abee0486e9d0d1c2a3866dbbee1c1e777 /Makefile
parent24fff300aac44abcc0833c99ae08644f03e87167 (diff)
Added install target
Diffstat (limited to 'Makefile')
-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)