--- libxmpf/src/Makefile.in.orig	2013-07-27 16:21:43.000000000 +0900
+++ libxmpf/src/Makefile.in	2013-07-27 16:23:40.000000000 +0900
@@ -610,8 +610,8 @@
 	@MPI_F90@ -c xmpf_main.f
 
 install-exec-local: xmpf_main.o
-	test -z $(libdir) || /bin/mkdir -p $(libdir)
-	$(INSTALL_DATA) xmpf_main.o $(libdir)
+	test -z $(libdir) || /bin/mkdir -p $(DESTDIR)$(libdir)
+	$(INSTALL_DATA) xmpf_main.o $(DESTDIR)$(libdir)
 
 clean-local:
 	rm -f *~ *.core core core.*
