summaryrefslogtreecommitdiff
path: root/fc-lang
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2012-11-30 20:10:30 +0900
committerAkira TAGOH <akira@tagoh.org>2012-11-30 20:10:30 +0900
commit2442d611579bccb84f0c29e3f9ceb0a7436df812 (patch)
treef35716094ed217fadbd228928cd57a5f5c4f6bcd /fc-lang
parentfaea1cac85ac3b0fd6a983e1c0adeb68e115e06c (diff)
Fix build issues on clean tree
Diffstat (limited to 'fc-lang')
-rw-r--r--fc-lang/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am
index 5c2d1bfe..3336511b 100644
--- a/fc-lang/Makefile.am
+++ b/fc-lang/Makefile.am
@@ -39,7 +39,10 @@ if CROSS_COMPILING
$(TARG):$(ORTH) fc-lang.c $(STMPL)
@echo Warning: cannot rebuild $(TARG) when cross-compiling
else
-$(TARG):$(ORTH) fc-lang${EXEEXT} $(STMPL)
+## BUILT_SOURCES doesn't effect to 'distcheck'
+## so $(ALIAS_FILES) has to be appeared prior to fc-lang$(EXEEXT)
+## to make sure availability.
+$(TARG):$(ORTH) $(ALIAS_FILES) fc-lang${EXEEXT} $(STMPL)
$(AM_V_GEN) $(RM) $(TARG); \
./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG)
@@ -47,10 +50,10 @@ endif
ALIAS_FILES = fcalias.h fcaliastail.h
-BUILT_SOURCES = $(ALIAS_FILES) $(TARG)
+BUILT_SOURCES = $(ALIAS_FILES)
$(ALIAS_FILES):
- touch $(ALIAS_FILES)
+ $(AM_V_GEN) touch $@
CLEANFILES = $(ALIAS_FILES)