diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2010-12-27 13:20:47 -0600 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2010-12-27 13:20:47 -0600 |
commit | 2a6b235ff6d2750171e8dff7cfdfe3bccb0f630e (patch) | |
tree | dd21848ab8cff2b1848f8c35d13ab57b663ed584 /fc-lang | |
parent | 0d47cfabd82cd9c02ec5711383f06599b0450ac0 (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-lang')
-rw-r--r-- | fc-lang/Makefile.am | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am index 242fae0e..29cee593 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: # |