File daixtrose-no_docs_in_includedir.patch of Package daixtrose
--- Makefile.am
+++ Makefile.am
@@ -192,17 +192,20 @@
install-data-local:
@echo "installing headers"; \
for f_raw in $(EXTRA_DIST); do \
- f=`echo $$f_raw | sed -e s,$(srcdir)/src/,,`; \
+## Install only headers to includedir
+ if test -z "`echo $$f_raw | grep -F /wwwdoc/`"; then \
+ f=`echo $$f_raw | sed -e s,$(srcdir)/src/,,`; \
## Compute the install directory at runtime.
- d=`echo $$f | sed -e s,[^/]*$$,,`; \
+ d=`echo $$f | sed -e s,[^/]*$$,,`; \
## Make the install directory.
- $(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
+ $(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
## Find the header file -- in our case it might be in srcdir or
## it might be in the build directory. "p" is the variable that
## names the actual file we will install.
- if test -f $(srcdir)/src/$$f; then p=$(srcdir)/src/$$f; else p=$$f; fi; \
+ if test -f $(srcdir)/src/$$f; then p=$(srcdir)/src/$$f; else p=$$f; fi; \
## Actually install the file.
- echo "installing " $(DESTDIR)$(includedir)/$$f; \
- $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f; \
+ echo "installing " $(DESTDIR)$(includedir)/$$f; \
+ $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f; \
+ fi; \
done