From 5952aaa961cca5b84f2bf82b9e00263c73e969ca Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 19 Apr 2017 12:29:36 +0200 Subject: [PATCH] Use $(datadir) instead of hardcoding /usr This way configure --prefix=/foo works. --- Makefile.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index a5658b42..bc346523 100755 --- a/Makefile.am +++ b/Makefile.am @@ -8,10 +8,10 @@ EXTRA_DIST = \ themedir = $(datadir)/icons install-data-hook: - $(MKDIR_P) $(DESTDIR)/usr/share/icons - cp -Rv Paper $(DESTDIR)/usr/share/icons/. - cp -Rv Paper-Mono-Dark $(DESTDIR)/usr/share/icons/. + $(MKDIR_P) $(DESTDIR)$(datadir)/icons + cp -Rv Paper $(DESTDIR)$(datadir)/icons/. + cp -Rv Paper-Mono-Dark $(DESTDIR)$(datadir)/icons/. uninstall-hook: - test -e $(DESTDIR)/usr/share/icons/Paper && rm -rfv $(DESTDIR)/usr/share/icons/Paper - test -e $(DESTDIR)/usr/share/icons/Paper-Mono-Dark && rm -rfv $(DESTDIR)/usr/share/icons/Paper-Mono-Dark + test -e $(DESTDIR)$(datadir)/icons/Paper && rm -rfv $(DESTDIR)$(datadir)/icons/Paper + test -e $(DESTDIR)$(datadir)/icons/Paper-Mono-Dark && rm -rfv $(DESTDIR)$(datadir)/icons/Paper-Mono-Dark