Makefile.am revision ca08ab68
1ca08ab68Smrg# -*- encoding: utf-8 -*-
22c393a42Smrg#
32c393a42Smrg# $Id $
42c393a42Smrg#
52c393a42Smrg# Copyright © 2003 Keith Packard
62c393a42Smrg#
72c393a42Smrg# Permission to use, copy, modify, distribute, and sell this software and its
82c393a42Smrg# documentation for any purpose is hereby granted without fee, provided that
92c393a42Smrg# the above copyright notice appear in all copies and that both that
102c393a42Smrg# copyright notice and this permission notice appear in supporting
11ca08ab68Smrg# documentation, and that the name of the author(s) not be used in
122c393a42Smrg# advertising or publicity pertaining to distribution of the software without
13ca08ab68Smrg# specific, written prior permission.  The authors make no
142c393a42Smrg# representations about the suitability of this software for any purpose.  It
152c393a42Smrg# is provided "as is" without express or implied warranty.
162c393a42Smrg#
17a6844aabSmrg# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
182c393a42Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19a6844aabSmrg# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
202c393a42Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
212c393a42Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
222c393a42Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
232c393a42Smrg# PERFORMANCE OF THIS SOFTWARE.
242c393a42Smrg#
252c393a42Smrg
262c393a42SmrgINCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
272c393a42Smrg
282c393a42SmrgTMPL=fccase.tmpl.h
292c393a42SmrgSTMPL=${top_srcdir}/fc-case/${TMPL}
302c393a42SmrgTARG=fccase.h
312c393a42Smrg
322c393a42Smrgnoinst_PROGRAMS=fc-case
332c393a42Smrg
34a6844aabSmrgnoinst_HEADERS=$(TARG)
352c393a42Smrg
36ca08ab68Smrgfc_case_SOURCES= \
37ca08ab68Smrg	fc-case.c
382c393a42Smrg
392c393a42SmrgCASEFOLDING=CaseFolding.txt
402c393a42SmrgSCASEFOLDING=${top_srcdir}/fc-case/CaseFolding.txt
412c393a42Smrg
42ca08ab68SmrgEXTRA_DIST = $(TARG) $(TMPL) $(CASEFOLDING)
432c393a42Smrg
44ca08ab68Smrgif CROSS_COMPILING
45ca08ab68Smrg$(TARG): $(STMPL) fc-case.c $(SCASEFOLDING)
46ca08ab68Smrg	@echo Warning: cannot rebuild $(TARG) when cross-compiling
47ca08ab68Smrgelse
482c393a42Smrg$(TARG): $(STMPL) fc-case$(EXEEXT) $(SCASEFOLDING)
49a6844aabSmrg	$(AM_V_GEN) $(RM) $(TARG); \
50a6844aabSmrg	./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \
51a6844aabSmrg	mv $(TARG).tmp $(TARG)
52ca08ab68Smrgendif
532c393a42Smrg
542c393a42SmrgALIAS_FILES = fcalias.h fcaliastail.h
552c393a42Smrg
56a6844aabSmrgBUILT_SOURCES = $(ALIAS_FILES)
572c393a42Smrg
582c393a42Smrg$(ALIAS_FILES): 
592c393a42Smrg	touch $(ALIAS_FILES)
602c393a42Smrg
61ca08ab68SmrgCLEANFILES = $(ALIAS_FILES)
62ca08ab68Smrg
63ca08ab68SmrgDISTCLEANFILES = $(TARG)
642c393a42Smrg
65ca08ab68SmrgMAINTAINERCLEANFILES = $(TARG)
66