]> granicus.if.org Git - json-c/commitdiff
Prepend DESTDIR to paths for staged installs
authorAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>
Wed, 19 Dec 2012 12:16:38 +0000 (13:16 +0100)
committerAlexander Klauer <Alexander.Klauer@itwm.fraunhofer.de>
Wed, 19 Dec 2012 12:16:38 +0000 (13:16 +0100)
Makefile.am

index fc4479f61d54e1ec4e9e21b36f8629a5f45c358e..36272f47b0781b5c5e22d4d7079e585d0b26f02f 100644 (file)
@@ -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