+2004-03-30 Keith Packard <keithp@keithp.com>
+
+ * doc/Makefile.am:
+ Fix --disable-doc mode code to locate built documents in ${srcdir}
+ instead of ${builddir}
+
2004-03-30 Keith Packard <keithp@keithp.com>
* src/fcfreetype.c: (FcGetPixelSize), (FcFreeTypeQuery):
CLEANFILES=confdir.sgml local-fontconfig-user.sgml local-fontconfig-devel.sgml
+BUILT_DOC_DIR=.
+
else
+
+BUILT_DOC_DIR=${srcdir}
+
all-local:
clean-local:
endif
$(mkinstalldirs) $(DESTDIR)$(DOCDIR)
for i in $(DOC_FILES); do \
echo '-- Installing '$$i ; \
- $(INSTALL_DATA) $$i $(DESTDIR)$(DOCDIR)/$$i; \
+ $(INSTALL_DATA) $(BUILT_DOC_DIR)/$$i $(DESTDIR)$(DOCDIR)/$$i; \
done
for i in $(DOC_DIRS); do \
$(mkinstalldirs) $(DESTDIR)$(DOCDIR)/$$i ; \
- for f in $$i/*; do \
- echo '-- Installing '$$f ; \
- $(INSTALL_DATA) $$f $(DESTDIR)$(DOCDIR)/$$f; \
+ for f in $(BUILT_DOC_DIR)/$$i/*; do \
+ g=`echo $$f | sed 's;$(BUILT_DOC_DIR)/;;'`; \
+ echo '-- Installing '$$g ; \
+ $(INSTALL_DATA) $$f $(DESTDIR)$(DOCDIR)/$$g; \
done \
done