Fix build issues on clean tree

This commit is contained in:
Akira TAGOH 2012-11-30 20:10:30 +09:00
parent faea1cac85
commit 2442d61157
4 changed files with 19 additions and 15 deletions

View File

@ -176,16 +176,11 @@ fonts-conf.5: local-fontconfig-user.sgml version.sgml confdir.sgml
$(man3_MANS): func.refs $(man3_MANS): func.refs
func.refs: local-fontconfig-devel.sgml $(DOCS_DEPS) func.refs: local-fontconfig-devel.sgml $(DOCS_DEPS)
$(AM_V_GEN) $(RM) $@; \ $(AM_V_GEN) $(RM) $@; \
[ "x$(builddir)" != "x$(srcdir)" ] && \
for f in $(DOC_FUNCS_SGML); do \
$(RM) $(builddir)/$$f || :; \
$(LN_S) $(srcdir)/$$f $(builddir)/$$f; \
done || :; \
$(DOC2MAN) -o devel-man local-fontconfig-devel.sgml && \ $(DOC2MAN) -o devel-man local-fontconfig-devel.sgml && \
mv devel-man/manpage.refs func.refs && \ mv devel-man/manpage.refs func.refs && \
mv devel-man/*.3 . && \ mv devel-man/*.3 . && \
$(RM) devel-man/manpage.* && \ $(RM) devel-man/manpage.* && \
rmdir devel-man rmdir devel-man || rm $@ || :
confdir.sgml: $(srcdir)/confdir.sgml.in confdir.sgml: $(srcdir)/confdir.sgml.in
$(AM_V_GEN) sed -e 's,@CONFDIR\@,${CONFDIR},' $(srcdir)/$@.in | awk '{if (NR > 1) printf("\n"); printf("%s", $$0);}' > $@ $(AM_V_GEN) sed -e 's,@CONFDIR\@,${CONFDIR},' $(srcdir)/$@.in | awk '{if (NR > 1) printf("\n"); printf("%s", $$0);}' > $@
## ##
@ -207,7 +202,7 @@ local-fontconfig-devel.sgml: $(srcdir)/fontconfig-devel.sgml
all-local: $(BUILT_DOCS) $(HTML_DIR)/* all-local: $(BUILT_DOCS) $(HTML_DIR)/*
clean-local: clean-local:
$(RM) -r $(HTML_DIR) devel-man $(RM) -r $(HTML_DIR) devel-man
[ "x$(builddir)" != "x$(srcdir)" ] && $(RM) $(builddir)/fontconfig-user.sgml $(builddir)/fontconfig-devel.sgml || : [ "x$(builddir)" != "x$(srcdir)" ] && $(RM) $(builddir)/*.sgml || :
else else
htmldoc_DATA += $(srcdir)/$(HTML_DIR)/* htmldoc_DATA += $(srcdir)/$(HTML_DIR)/*
all-local: all-local:

View File

@ -45,7 +45,10 @@ if CROSS_COMPILING
$(TARG): $(STMPL) fc-case.c $(SCASEFOLDING) $(TARG): $(STMPL) fc-case.c $(SCASEFOLDING)
@echo Warning: cannot rebuild $(TARG) when cross-compiling @echo Warning: cannot rebuild $(TARG) when cross-compiling
else 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); \ $(AM_V_GEN) $(RM) $(TARG); \
./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \ ./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG) mv $(TARG).tmp $(TARG)
@ -56,7 +59,7 @@ ALIAS_FILES = fcalias.h fcaliastail.h
BUILT_SOURCES = $(ALIAS_FILES) BUILT_SOURCES = $(ALIAS_FILES)
$(ALIAS_FILES): $(ALIAS_FILES):
touch $(ALIAS_FILES) $(AM_V_GEN) touch $@
CLEANFILES = $(ALIAS_FILES) CLEANFILES = $(ALIAS_FILES)

View File

@ -40,7 +40,10 @@ if CROSS_COMPILING
$(TARG): $(STMPL) fc-glyphname.c $(SGLYPHNAME) $(TARG): $(STMPL) fc-glyphname.c $(SGLYPHNAME)
@echo Warning: cannot rebuild $(TARG) when cross-compiling @echo Warning: cannot rebuild $(TARG) when cross-compiling
else else
$(TARG): $(STMPL) fc-glyphname$(EXEEXT) $(SGLYPHNAME) ## BUILT_SOURCES doesn't effect to 'distcheck'
## so $(ALIAS_FILES) has to be appeared prior to fc-glyphname$(EXEEXT)
## to make sure availability.
$(TARG): $(STMPL) $(ALIAS_FILES) fc-glyphname$(EXEEXT) $(SGLYPHNAME)
$(AM_V_GEN) $(RM) $(TARG); \ $(AM_V_GEN) $(RM) $(TARG); \
./fc-glyphname$(EXEEXT) $(SGLYPHNAME) < $(STMPL) > $(TARG).tmp && \ ./fc-glyphname$(EXEEXT) $(SGLYPHNAME) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG) mv $(TARG).tmp $(TARG)
@ -48,10 +51,10 @@ endif
ALIAS_FILES = fcalias.h fcaliastail.h ALIAS_FILES = fcalias.h fcaliastail.h
BUILT_SOURCES = $(ALIAS_FILES) $(TARG) BUILT_SOURCES = $(ALIAS_FILES)
$(ALIAS_FILES): $(ALIAS_FILES):
touch $(ALIAS_FILES) $(AM_V_GEN) touch $@
CLEANFILES = $(ALIAS_FILES) CLEANFILES = $(ALIAS_FILES)

View File

@ -39,7 +39,10 @@ if CROSS_COMPILING
$(TARG):$(ORTH) fc-lang.c $(STMPL) $(TARG):$(ORTH) fc-lang.c $(STMPL)
@echo Warning: cannot rebuild $(TARG) when cross-compiling @echo Warning: cannot rebuild $(TARG) when cross-compiling
else 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); \ $(AM_V_GEN) $(RM) $(TARG); \
./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \ ./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \
mv $(TARG).tmp $(TARG) mv $(TARG).tmp $(TARG)
@ -47,10 +50,10 @@ endif
ALIAS_FILES = fcalias.h fcaliastail.h ALIAS_FILES = fcalias.h fcaliastail.h
BUILT_SOURCES = $(ALIAS_FILES) $(TARG) BUILT_SOURCES = $(ALIAS_FILES)
$(ALIAS_FILES): $(ALIAS_FILES):
touch $(ALIAS_FILES) $(AM_V_GEN) touch $@
CLEANFILES = $(ALIAS_FILES) CLEANFILES = $(ALIAS_FILES)