--- Makefile.am 2008-05-13 19:32:10.000000000 +0200 +++ ../test-Makefile.am 2008-05-14 16:23:23.000000000 +0200 @@ -3,13 +3,15 @@ html-local: $(MKDIR_P) $(builddir)/html for f in a b; do \ - echo $$f >$(builddir)/html/$$f; \ + file=$(builddir)/html/$$f; \ + echo $$f >$$file; \ + test ! -w $(srcdir)/html/$$f && cmp $(srcdir)/html/$$f $$file && rm $$file || :; \ done install-data-local: html-local $(MKDIR_P) $(DESTDIR)$(datadir)/$(PACKAGE)/html for f in a b; do \ - $(INSTALL_DATA) $(builddir)/html/$$f $(DESTDIR)$(datadir)/$(PACKAGE)/html/; \ + $(INSTALL_DATA) $(srcdir)/html/$$f $(DESTDIR)$(datadir)/$(PACKAGE)/html/; \ done uninstall-local: