summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-01-02 17:49:41 -0600
committerBehdad Esfahbod <behdad@behdad.org>2013-01-02 17:49:41 -0600
commit558b3c65f91b4b2dd65ce2242e1a21ace621e44b (patch)
treeaac8864b099927ed435c7c055448b73c70517946 /doc
parentec8a40d2381014ad2e72b5da0e6357a85f078f9f (diff)
Use CC_FOR_BUILD to generate source files
Previously we were failing if CROSS_COMPILING and the generated headers were not present. It works just fine now. One caveat: the fix is not fully correct since config.h is being included in the files built with CC_FOR_BUILD, but config.h has config for the host system, not the build system. Should be fine though.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am6
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index ad68c09d..cf1fb89a 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -118,6 +118,7 @@ noinst_PROGRAMS = \
edit_sgml_SOURCES = \
edit-sgml.c \
$(NULL)
+edit_sgml_CC = $(CC_FOR_BUILD)
#
check_SCRIPTS = \
check-missing-doc \
@@ -150,14 +151,9 @@ noinst_PROGRAMS += \
htmldoc_DATA += $(HTML_DIR)/*
##
-if CROSS_COMPILING
-.fncs.sgml:
- @echo Warning: cannot rebuild $@ when cross-compiling
-else
.fncs.sgml:
$(AM_V_GEN) $(RM) $@; \
$(builddir)/edit-sgml$(EXEEXT) $(srcdir)/func.sgml < '$(srcdir)/$*.fncs' > $*.sgml
-endif
.sgml.txt:
$(AM_V_GEN) $(RM) $@; \
$(DOC2TXT) $*.sgml