From e8a56b17e39a0f7c1b4056e160730d9c946ea557 Mon Sep 17 00:00:00 2001 From: Forest Date: Mon, 8 Sep 2014 11:09:31 -0700 Subject: [PATCH] Prepend $(DESTDIR) to install directories, for packaging tools. --- Makefile.am | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index d04ddb2df3..0835b739e0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,14 +27,14 @@ dist-hook: SMData cp -r -t "$(distdir)" $(installFiles) install-exec-hook: - mkdir -p "$(prefix)/$(productID)" - $(INSTALL) $(installFiles) "$(prefix)/$(productID)" + mkdir -p "$(DESTDIR)$(prefix)/$(productID)" + $(INSTALL) $(installFiles) "$(DESTDIR)$(prefix)/$(productID)" install-data-local: - cp -r -t "$(prefix)/$(productID)" $(installData) - mkdir -p "$(prefix)/$(productID)/Songs" + cp -r -t "$(DESTDIR)$(prefix)/$(productID)" $(installData) + mkdir -p "$(DESTDIR)$(prefix)/$(productID)/Songs" uninstall-hook: - rm -f "$(prefix)/$(productID)/stepmania" - rm -f "$(prefix)/$(productID)/GtkModule.so" + rm -f "$(DESTDIR)$(prefix)/$(productID)/stepmania" + rm -f "$(DESTDIR)$(prefix)/$(productID)/GtkModule.so" # todo: properly remove data