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:
parent
cf711150a6
commit
97d540493c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue