X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=fc-case%2FMakefile.am;h=4f255fc71143c516966469e20c1b3be505662bba;hb=2a6b235ff6d2750171e8dff7cfdfe3bccb0f630e;hp=e00508beded3f465fd73f996360269afad88724c;hpb=192296d852011f4a2abb6e9fd1ee741fa7f81673;p=fontconfig.git diff --git a/fc-case/Makefile.am b/fc-case/Makefile.am index e00508b..4f255fc 100644 --- a/fc-case/Makefile.am +++ b/fc-case/Makefile.am @@ -7,22 +7,22 @@ # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting -# documentation, and that the name of Keith Packard not be used in +# documentation, and that the name of the author(s) not be used in # advertising or publicity pertaining to distribution of the software without -# specific, written prior permission. Keith Packard makes no +# specific, written prior permission. The authors make no # representations about the suitability of this software for any purpose. It # is provided "as is" without express or implied warranty. # -# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO -# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. # -INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS) +INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS) TMPL=fccase.tmpl.h STMPL=${top_srcdir}/fc-case/${TMPL} @@ -32,8 +32,6 @@ noinst_PROGRAMS=fc-case noinst_HEADERS=$(TARG) -noinst_MANS=fc-case.man - fc_case_SRCS= \ fc-case.c \ fccaseint.h \ @@ -42,11 +40,25 @@ 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 + +BUILT_SOURCES = $(ALIAS_FILES) -$(TARG): $(STMPL) fc-case $(SCASEFOLDING) - rm -f $(TARG) - ./fc-case $(SCASEFOLDING) < $(STMPL) > $(TARG) +$(ALIAS_FILES): + touch $(ALIAS_FILES) -CLEANFILES=$(TARG) +CLEANFILES = $(ALIAS_FILES) +MAINTAINERCLEANFILES = $(TARG)