From 024d86c07ffcd8fef1ba19ac821416281ffb1f8d Mon Sep 17 00:00:00 2001 From: Alexander Klauer Date: Wed, 19 Dec 2012 13:16:38 +0100 Subject: [PATCH] Prepend DESTDIR to paths for staged installs --- Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index fc4479f..36272f4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,12 +65,12 @@ maintainer-clean-local: if ENABLE_OLDNAME_COMPAT install-data-hook: - test \! -e "$(includedir)/json" || rm "$(includedir)/json" - $(LN_S) json-c "$(includedir)/json" + test \! -e "$(DESTDIR)@includedir@json" || rm "$(DESTDIR)@includedir@/json" + $(LN_S) json-c "$(DESTDIR)@includedir@/json" uninstall-local: - rm -f "$(includedir)/json" - rm -rf "$(includedir)/json-c" + rm -f "$(DESTDIR)@includedir@/json" + rm -rf "$(DESTDIR)@includedir@/json-c" endif -- 2.49.0