summaryrefslogtreecommitdiff
path: root/fc-case
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-case
parent0d47cfabd82cd9c02ec5711383f06599b0450ac0 (diff)
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-case')
-rw-r--r--fc-case/Makefile.am14
1 files changed, 8 insertions, 6 deletions
diff --git a/fc-case/Makefile.am b/fc-case/Makefile.am
index e4621202..4f255fc7 100644
--- a/fc-case/Makefile.am
+++ b/fc-case/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=fccase.tmpl.h
@@ -44,12 +40,17 @@ fc_case_SRCS= \
CASEFOLDING=CaseFolding.txt
SCASEFOLDING=${top_srcdir}/fc-case/CaseFolding.txt
-EXTRA_DIST=$(TMPL) $(CASEFOLDING)
+EXTRA_DIST = $(TARG) $(TMPL) $(CASEFOLDING)
+if CROSS_COMPILING
+$(TARG): $(STMPL) fc-case.c $(SCASEFOLDING)
+ @echo Warning: cannot rebuild $(TARG) when cross-compiling
+else
$(TARG): $(STMPL) fc-case$(EXEEXT) $(SCASEFOLDING)
$(AM_V_GEN) $(RM) $(TARG); \
./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG)
+endif
ALIAS_FILES = fcalias.h fcaliastail.h
@@ -58,5 +59,6 @@ BUILT_SOURCES = $(ALIAS_FILES)
$(ALIAS_FILES):
touch $(ALIAS_FILES)
-CLEANFILES=$(TARG) $(ALIAS_FILES)
+CLEANFILES = $(ALIAS_FILES)
+MAINTAINERCLEANFILES = $(TARG)