Index: qe-6.0/install/make.inc.in
===================================================================
--- qe-6.0.orig/install/make.inc.in
+++ qe-6.0/install/make.inc.in
@@ -160,4 +160,6 @@ LIBS           = $(SCALAPACK_LIBS) $(LAP
 WGET = @wget@
 
 # Install directory - not currently used
-PREFIX = @prefix@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
Index: qe-6.0/Makefile
===================================================================
--- qe-6.0.orig/Makefile
+++ qe-6.0/Makefile
@@ -258,9 +258,9 @@ links : bindir
 #########################################################
 
 install : touch-dummy
-	@if test -d bin ; then mkdir -p $(PREFIX)/bin ; \
+	@if test -d bin ; then mkdir -p $(DESTDIR)$(bindir) ; \
 	for x in `find . -path ./test-suite -prune -o -name *.x -type f` ; do \
-		cp $$x $(PREFIX)/bin/ ; done ; \
+		cp $$x $(DESTDIR)$(bindir)/ ; done ; \
 	fi
 	@echo 'Quantum ESPRESSO binaries installed in $(PREFIX)/bin'
 
