[Pkg-wmaker-commits] [wmsysmon] 03/13: Honor DESTDIR and PREFIX variables in Makefile.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Nov 22 19:52:02 UTC 2016


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

dtorrance-guest pushed a commit to branch upstream
in repository wmsysmon.

commit 2fafabfe8a7bcc88a602c06414dfeedec5a637e2
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Fri Jul 17 09:55:11 2015 -0600

    Honor DESTDIR and PREFIX variables in Makefile.
    
    Based in part on a patch by Luca Bedogni <me at lucabedogni.it>.
    
    Origin: https://sources.debian.net/src/wmsysmon/0.7.7-8/debian/patches/src_makefile.patch/
---
 src/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 0d55e2c..d97f077 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,4 +1,5 @@
 CC = gcc
+PREFIX ?= /usr/local
 
 LIBDIR += -L/usr/X11R6/lib
 LDFLAGS += -lXpm -lXext -lX11 -lm -s
@@ -18,4 +19,5 @@ clean:
 	rm -f $(OBJS) $(BIN)
 
 install:
-	install -g root -o root $(BIN) /usr/local/bin
+	mkdir -p $(DESTDIR)$(PREFIX)/bin
+	install -g root -o root $(BIN) $(DESTDIR)$(PREFIX)/bin

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmsysmon.git



More information about the Pkg-wmaker-commits mailing list