From 6ac45b92bd41ff4898016a88cf9f905b6af52863 Mon Sep 17 00:00:00 2001 From: Dridi Boukelmoune Date: Wed, 14 Mar 2018 11:41:30 +0100 Subject: [PATCH] Make install(1) commands override-able (#96) --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 239a001a..09818a06 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ PREFIX ?= /usr/local MANPREFIX ?= $(PREFIX)/share/man STRIP ?= strip PKG_CONFIG ?= pkg-config +INSTALL ?= install CFLAGS ?= -O3 CFLAGS += -Wall -Wextra -Wno-unused-parameter @@ -32,10 +33,10 @@ debug: $(SRC) $(CC) -DDEBUGMODE -g $(CFLAGS) $(LDFLAGS) -o $(BIN) $^ $(LDLIBS) install: all - install -m 0755 -d $(DESTDIR)$(PREFIX)/bin - install -m 0755 $(BIN) $(PLAYER) $(DESTDIR)$(PREFIX)/bin - install -m 0755 -d $(DESTDIR)$(MANPREFIX)/man1 - install -m 0644 $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1 + $(INSTALL) -m 0755 -d $(DESTDIR)$(PREFIX)/bin + $(INSTALL) -m 0755 $(BIN) $(PLAYER) $(DESTDIR)$(PREFIX)/bin + $(INSTALL) -m 0755 -d $(DESTDIR)$(MANPREFIX)/man1 + $(INSTALL) -m 0644 $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1 uninstall: $(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN)