Browse Source

Issue#84: explicitly remove old headers and include/json directory so creating the compat symlink can work.

tags/json-c-0.12-20140410
Eric Haszlakiewicz 12 years ago
parent
commit
be002fbb96
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      Makefile.am

+ 6
- 0
Makefile.am View 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"



Loading…
Cancel
Save