From: Alexander Klauer Date: Wed, 19 Dec 2012 12:16:38 +0000 (+0100) Subject: Prepend DESTDIR to paths for staged installs X-Git-Tag: json-c-0.11-20130402~28^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=024d86c07ffcd8fef1ba19ac821416281ffb1f8d;p=thirdparty%2Fjson-c.git Prepend DESTDIR to paths for staged installs --- diff --git a/Makefile.am b/Makefile.am index fc4479f6..36272f47 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