From 3b0dceb28eb4ee1aa3034b7c92c6cf865b063e4e Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Sun, 23 Nov 2014 23:06:21 -0600 Subject: [PATCH] wmacpi: Respect DESTDIR variable in Makefile, e.g., for package creation. --- wmacpi/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wmacpi/Makefile b/wmacpi/Makefile index 44fb5bd..5c6f0aa 100644 --- a/wmacpi/Makefile +++ b/wmacpi/Makefile @@ -62,10 +62,10 @@ clean: clean-all: clean install: $(targets) - install -d $(PREFIX)/bin/ - install -pc $(targets) $(PREFIX)/bin/ - install -d $(PREFIX)/share/man/man1/ - install -pc $(doc_targets) $(PREFIX)/share/man/man1/ + install -d $(DESTDIR)$(PREFIX)/bin/ + install -pc $(targets) $(DESTDIR)$(PREFIX)/bin/ + install -d $(DESTDIR)$(PREFIX)/share/man/man1/ + install -pc $(doc_targets) $(DESTDIR)$(PREFIX)/share/man/man1/ tags: etags $(WMSRC) $(CLSRC) $(HEADERS)