From 4c8248cc9d96740079c9c5115e518377b8fa9969 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 26 Apr 2006 15:24:30 +0200 Subject: [PATCH] [PATCH] Makefile: add install target (defaults to /usr/local/bin) --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.25.1