$NetBSD: patch-ab,v 1.10 2008/05/15 20:22:02 drochner Exp $ --- share/Makefile.in.orig 2008-03-08 21:06:28.000000000 +0100 +++ share/Makefile.in @@ -189,7 +189,7 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = foreign 1.2h EXTRA_DIST = Gnuplot.app-defaults -SUBDIRS = LaTeX +SUBDIRS = appdefaultdir = $(libdir)/X11/app-defaults APPDEFAULTFILES = Gnuplot appdefault_DATA = $(APPDEFAULTFILES) @@ -229,13 +229,15 @@ $(ACLOCAL_M4): $(am__aclocal_m4_deps) uninstall-info-am: install-appdefaultDATA: $(appdefault_DATA) @$(NORMAL_INSTALL) - test -z "$(appdefaultdir)" || $(mkdir_p) "$(DESTDIR)$(appdefaultdir)" - @list='$(appdefault_DATA)'; for p in $$list; do \ + if test $${INSTALL_XRESOURCE_DATA:-yes} = yes; then \ + test -z "$(appdefaultdir)" || $(mkdir_p) "$(DESTDIR)$(appdefaultdir)"; \ + list='$(appdefault_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(appdefaultDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appdefaultdir)/$$f'"; \ $(appdefaultDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appdefaultdir)/$$f"; \ - done + done; \ + fi uninstall-appdefaultDATA: @$(NORMAL_UNINSTALL)