From: Eric Haszlakiewicz Date: Sun, 29 Jul 2012 23:05:08 +0000 (-0500) Subject: Add a compatibility symlink json->json-c in the include directory. X-Git-Tag: json-c-0.11-20130402~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=943b7a4de78b7c9c0765d157df0d4db0adabbf26;p=json-c Add a compatibility symlink json->json-c in the include directory. --- diff --git a/Makefile.am b/Makefile.am index 0de3d21..41ea9fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -56,6 +56,17 @@ distclean-local: -rm -rf $(testsubdir) -rm -rf config.h.in~ Makefile.in aclocal.m4 autom4te.cache/ config.guess config.sub configure depcomp install-sh ltmain.sh missing +if ENABLE_OLDNAME_COMPAT +install-data-hook: + test \! -d "$(includedir)/json" || rmdir "$(includedir)/json" + test \! -e "$(includedir)/json" || rm "$(includedir)/json" + $(LN_S) json-c "$(includedir)/json" + +uninstall-local: + rm -f "$(includedir)/json" + +endif + ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H Android.mk: Makefile.am