Browse Source

Don't rmdir the destination directory if it's a symlink during "make install-data-hook"

This fixes a build error on linux during subsequent "make install" runs after the first "make install" succeeds
pull/119/head
J. Maurice 11 years ago
parent
commit
ec04fea6f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Makefile.am

+ 1
- 1
Makefile.am View File

@@ -71,7 +71,7 @@ install-data-hook:
if test -d "$(DESTDIR)@includedir@/json" ; then \ if test -d "$(DESTDIR)@includedir@/json" ; then \
(cd "$(DESTDIR)@includedir@/json" && \ (cd "$(DESTDIR)@includedir@/json" && \
rm -f $(libjson_cinclude_HEADERS)) ; \ rm -f $(libjson_cinclude_HEADERS)) ; \
rmdir "$(DESTDIR)@includedir@/json" ; \
test -L "$(DESTDIR)@includedir@/json" || rmdir "$(DESTDIR)@includedir@/json" ; \
fi 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"


Loading…
Cancel
Save