[PATCH kexec-tools 4/7] build: use DESTDIR in uninstall target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For symmetry with the install target, also use DESTDIR in the uninstall
target.

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
---
 Makefile.in | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 4fe1016..94e9fd8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -338,67 +338,67 @@ install: $(TARGETS)
 uninstall:
 	UINSTALL_LIST='$(UNINSTALL_TARGETS)'; for file in $$UINSTALL_LIST ; do \
 		if test `$(DIRNAME) $$file` =     "$(sbindir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(bindir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(libexecdir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(datadir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(sysconfdir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(sharedstatedir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(localstatedir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(libdir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(infodir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man1" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man2" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man3" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man4" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man5" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man6" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man7" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(mandir)/man8" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(includedir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(pkgdatadir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(pkglibdir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 		if test `$(DIRNAME) $$file` =     "$(pkgincludedir)" ; then \
-			rm -rf $$file ; \
+			rm -rf $(DESTDIR)/$$file ; \
 		fi; \
 	done
 
-- 
2.20.1


_______________________________________________
kexec mailing list
kexec@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/kexec



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux