From: Eric Haszlakiewicz Date: Sat, 29 Jun 2013 20:21:04 +0000 (-0500) Subject: Issue#84: explicitly remove old headers and include/json directory so creating the... X-Git-Tag: json-c-0.12-20140410~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be002fbb96c484f89aee2c843b89bdd00b0a5e46;p=thirdparty%2Fjson-c.git Issue#84: explicitly remove old headers and include/json directory so creating the compat symlink can work. --- diff --git a/Makefile.am b/Makefile.am index 51159b0a..73e81169 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,7 +66,13 @@ maintainer-clean-local: -rm -rf configure if ENABLE_OLDNAME_COMPAT +# Remove old headers and create a compatibility link install-data-hook: + if test -d "$(DESTDIR)@includedir@/json" ; then \ + (cd "$(DESTDIR)@includedir@/json" && \ + rm -f $(libjson_cinclude_HEADERS)) ; \ + rmdir "$(DESTDIR)@includedir@/json" ; \ + fi test \! -e "$(DESTDIR)@includedir@/json" || rm "$(DESTDIR)@includedir@/json" $(LN_S) json-c "$(DESTDIR)@includedir@/json"