mirror of
https://github.com/json-c/json-c.git
synced 2026-04-01 19:39:07 +08:00
Issue#84: explicitly remove old headers and include/json directory so creating the compat symlink can work.
This commit is contained in:
@@ -66,7 +66,13 @@ maintainer-clean-local:
|
|||||||
-rm -rf configure
|
-rm -rf configure
|
||||||
|
|
||||||
if ENABLE_OLDNAME_COMPAT
|
if ENABLE_OLDNAME_COMPAT
|
||||||
|
# Remove old headers and create a compatibility link
|
||||||
install-data-hook:
|
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"
|
test \! -e "$(DESTDIR)@includedir@/json" || rm "$(DESTDIR)@includedir@/json"
|
||||||
$(LN_S) json-c "$(DESTDIR)@includedir@/json"
|
$(LN_S) json-c "$(DESTDIR)@includedir@/json"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user