]> granicus.if.org Git - json-c/commitdiff
Add a compatibility symlink json->json-c in the include directory.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 29 Jul 2012 23:05:08 +0000 (18:05 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 29 Jul 2012 23:05:08 +0000 (18:05 -0500)
Makefile.am

index 0de3d21e3b9a847c9ca3198f16a4afb76338b0ae..41ea9fbfd31f61c893a076c3d39bee018d527861 100644 (file)
@@ -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