diff options
author | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-04-12 16:38:49 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-04-12 16:38:49 +0200 |
commit | cfa4b3b11a287d3713dd015d1a9ed8cac1544cfd (patch) | |
tree | b0d6269abee0486e9d0d1c2a3866dbbee1c1e777 /Makefile | |
parent | 24fff300aac44abcc0833c99ae08644f03e87167 (diff) |
Added install target
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) |