Fix src/Makefile.in so it will check whether /usr/xxxxx is writable or not before trying to write files

This commit is contained in:
Kevin James 2009-02-19 19:36:29 +00:00
parent cf711150a6
commit 97d540493c
1 changed files with 4 additions and 0 deletions

View File

@ -445,8 +445,10 @@ install-applicationsDATA: $(applications_DATA)
@list='$(applications_DATA)'; for p in $$list; do \ @list='$(applications_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \ f=$(am__strip_dir) \
if test -w "$(DESTDIR)$(applicationsdir)"; then \
echo " $(applicationsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(applicationsdir)/$$f'"; \ echo " $(applicationsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(applicationsdir)/$$f'"; \
$(applicationsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(applicationsdir)/$$f"; \ $(applicationsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(applicationsdir)/$$f"; \
else echo "$(DESTDIR)$(applicationsdir) not writable: skipping $$f"; fi; \
done done
uninstall-applicationsDATA: uninstall-applicationsDATA:
@ -482,7 +484,9 @@ install-pixmapDATA: $(pixmap_DATA)
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \ f=$(am__strip_dir) \
echo " $(pixmapDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pixmapdir)/$$f'"; \ echo " $(pixmapDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pixmapdir)/$$f'"; \
if test -w "$(DESTDIR)$(pixmapdir)"; then \
$(pixmapDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pixmapdir)/$$f"; \ $(pixmapDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pixmapdir)/$$f"; \
else echo "$(DESTDIR)$(pixmapdir) not writable: skipping $$f"; fi \
done done
uninstall-pixmapDATA: uninstall-pixmapDATA: