summaryrefslogtreecommitdiff
path: root/fc-case
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-case
parentfaea1cac85ac3b0fd6a983e1c0adeb68e115e06c (diff)
Fix build issues on clean tree
Diffstat (limited to 'fc-case')
-rw-r--r--fc-case/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/fc-case/Makefile.am b/fc-case/Makefile.am
index 69148246..6fe3a448 100644
--- a/fc-case/Makefile.am
+++ b/fc-case/Makefile.am
@@ -45,7 +45,10 @@ if CROSS_COMPILING
$(TARG): $(STMPL) fc-case.c $(SCASEFOLDING)
@echo Warning: cannot rebuild $(TARG) when cross-compiling
else
-$(TARG): $(STMPL) fc-case$(EXEEXT) $(SCASEFOLDING)
+## BUILT_SOURCES doesn't effect to 'distcheck'
+## so $(ALIAS_FILES) has to be appeared prior to fc-case$(EXEEXT)
+## to make sure availability.
+$(TARG): $(STMPL) $(ALIAS_FILES) fc-case$(EXEEXT) $(SCASEFOLDING)
$(AM_V_GEN) $(RM) $(TARG); \
./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG)
@@ -56,7 +59,7 @@ ALIAS_FILES = fcalias.h fcaliastail.h
BUILT_SOURCES = $(ALIAS_FILES)
$(ALIAS_FILES):
- touch $(ALIAS_FILES)
+ $(AM_V_GEN) touch $@
CLEANFILES = $(ALIAS_FILES)