From cfa4b3b11a287d3713dd015d1a9ed8cac1544cfd Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 12 Apr 2006 16:38:49 +0200 Subject: Added install target --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- cgit v1.2.3-54-g00ecf