[Pcsclite-git-commit] [pcsc-tools] 01/01: Makefile: Use variables for installation paths

Ludovic Rousseau rousseau at moszumanska.debian.org
Sun Jan 29 17:33:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository pcsc-tools.

commit 22b65fe210f920750033f75e648c07bb152d5290
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sun Jan 29 18:32:24 2017 +0100

    Makefile: Use variables for installation paths
    
    Thanks to Georgi D. Sotirov for the idea
    https://github.com/LudovicRousseau/pcsc-tools/pull/5
---
 Makefile | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index e2d733b..eb3157a 100644
--- a/Makefile
+++ b/Makefile
@@ -22,17 +22,22 @@ all: $(BIN) $(MAN)
 
 pcsc_scan: pcsc_scan.o
 
+INSTALL_PREFIX ?= /usr
+INSTALL_BIN_DIR ?= $(INSTALL_PREFIX)/bin
+INSTALL_DATA_DIR ?= $(INSTALL_PREFIX)/share
+INSTALL_MAN_DIR ?= $(INSTALL_DATA_DIR)/man
+
 install: all
-	install -d $(DESTDIR)/bin/
-	install $(BIN) $(DESTDIR)/bin/
+	install -d $(DESTDIR)$(INSTALL_BIN_DIR)/
+	install $(BIN) $(DESTDIR)$(INSTALL_BIN_DIR)/
 
-	install $(BIN_SCRIPT) $(DESTDIR)/bin/
+	install $(BIN_SCRIPT) $(DESTDIR)$(INSTALL_BIN_DIR)/
 
-	install -d $(DESTDIR)/share/pcsc
-	install -m 644 smartcard_list.txt $(DESTDIR)/share/pcsc
+	install -d $(DESTDIR)$(INSTALL_DATA_DIR)/pcsc
+	install -m 644 smartcard_list.txt $(DESTDIR)$(INSTALL_DATA_DIR)/pcsc
 
-	install -d $(DESTDIR)/share/man/man1/
-	install -m 644 $(MAN) $(DESTDIR)/share/man/man1/
+	install -d $(DESTDIR)$(INSTALL_MAN_DIR)/man1/
+	install -m 644 $(MAN) $(DESTDIR)$(INSTALL_MAN_DIR)/man1/
 
 clean:
 	rm -f pcsc_scan.o $(BIN) $(MAN)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git



More information about the Pcsclite-cvs-commit mailing list