]> granicus.if.org Git - json-c/commitdiff
Issue#84: explicitly remove old headers and include/json directory so creating the...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 29 Jun 2013 20:21:04 +0000 (15:21 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 29 Jun 2013 20:21:04 +0000 (15:21 -0500)
Makefile.am

index 51159b0a7695e2013185d1005fa4bc794b554959..73e811692a2abd6cade6406ffa963e956d8d30b5 100644 (file)
@@ -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"