summaryrefslogtreecommitdiff
path: root/fc-lang
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-12-27 13:20:47 -0600
committerBehdad Esfahbod <behdad@behdad.org>2010-12-27 13:20:47 -0600
commit2a6b235ff6d2750171e8dff7cfdfe3bccb0f630e (patch)
treedd21848ab8cff2b1848f8c35d13ab57b663ed584 /fc-lang
parent0d47cfabd82cd9c02ec5711383f06599b0450ac0 (diff)
downloadfontconfig-2a6b235ff6d2750171e8dff7cfdfe3bccb0f630e.tar.gz
Make most generated-files cross-compiling-safe
By simply including a copy in the tarball. Remains fc-arch which is trickier.
Diffstat (limited to 'fc-lang')
-rw-r--r--fc-lang/Makefile.am17
1 files changed, 10 insertions, 7 deletions
diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am
index 242fae0..29cee59 100644
--- a/fc-lang/Makefile.am
+++ b/fc-lang/Makefile.am
@@ -22,10 +22,6 @@
# PERFORMANCE OF THIS SOFTWARE.
#
-CC = @CC_FOR_BUILD@
-EXEEXT = @EXEEXT_FOR_BUILD@
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-
INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
TMPL=fclang.tmpl.h
@@ -36,21 +32,28 @@ noinst_PROGRAMS=fc-lang
noinst_MANS=fc-lang.man
-EXTRA_DIST=$(TMPL) $(ORTH)
+EXTRA_DIST = $(TARG) $(TMPL) $(ORTH)
+if CROSS_COMPILING
+$(TARG):$(ORTH) fc-lang.c $(STMPL)
+ @echo Warning: cannot rebuild $(TARG) when cross-compiling
+else
$(TARG):$(ORTH) fc-lang${EXEEXT} $(STMPL)
$(AM_V_GEN) $(RM) $(TARG); \
./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG)
+endif
ALIAS_FILES = fcalias.h fcaliastail.h
BUILT_SOURCES = $(ALIAS_FILES) $(TARG)
-$(ALIAS_FILES):
+$(ALIAS_FILES):
touch $(ALIAS_FILES)
-CLEANFILES = $(TARG) $(ALIAS_FILES)
+CLEANFILES = $(ALIAS_FILES)
+
+MAINTAINERCLEANFILES = $(TARG)
# NOTE:
#