From: Jens Axboe Date: Wed, 26 Apr 2006 13:24:30 +0000 (+0200) Subject: [PATCH] Makefile: add install target (defaults to /usr/local/bin) X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=4c8248cc9d96740079c9c5115e518377b8fa9969;p=splice.git [PATCH] Makefile: add install target (defaults to /usr/local/bin) --- diff --git a/Makefile b/Makefile index c059a09..7890cf8 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,14 @@ depend: clean: -rm -f *.o $(PROGS) .depend +INSTALL = install +prefix = /usr/local +bindir = $(prefix)/bin + +install: $(PROGS) + $(INSTALL) -m755 -d $(DESTDIR)$(bindir) + $(INSTALL) $(PROGS) $(DESTDIR)$(bindir) + ifneq ($(wildcard .depend),) include .depend endif