diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |