1c9710b42Smrg# -*- encoding: utf-8 -*-
2c9710b42Smrg#
3c9710b42Smrg# Copyright © 2003  Keith Packard
4c9710b42Smrg# Copyright © 2013  Google, Inc.
5c9710b42Smrg#
6c9710b42Smrg# Permission to use, copy, modify, distribute, and sell this software and its
7c9710b42Smrg# documentation for any purpose is hereby granted without fee, provided that
8c9710b42Smrg# the above copyright notice appear in all copies and that both that
9c9710b42Smrg# copyright notice and this permission notice appear in supporting
10c9710b42Smrg# documentation, and that the name of the author(s) not be used in
11c9710b42Smrg# advertising or publicity pertaining to distribution of the software without
12c9710b42Smrg# specific, written prior permission.  The authors make no
13c9710b42Smrg# representations about the suitability of this software for any purpose.  It
14c9710b42Smrg# is provided "as is" without express or implied warranty.
15c9710b42Smrg#
16c9710b42Smrg# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17c9710b42Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18c9710b42Smrg# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19c9710b42Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20c9710b42Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21c9710b42Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22c9710b42Smrg# PERFORMANCE OF THIS SOFTWARE.
23c9710b42Smrg#
24c9710b42Smrg# Google Author(s): Behdad Esfahbod
25c9710b42Smrg
26c9710b42SmrgDIR=fc-$(TAG)
27c9710b42SmrgOUT=fc$(TAG)
28c9710b42SmrgTMPL=$(OUT).tmpl.h
29c9710b42SmrgTARG=$(OUT).h
30a4e54154SmrgTOOL=$(srcdir)/$(DIR).py
31c9710b42Smrg
32a4e54154Smrgnoinst_SCRIPTS = $(TOOL)
33a4e54154SmrgEXTRA_DIST = $(TARG) $(TMPL) $(DIST)
34c9710b42Smrg
35a4e54154Smrg$(TARG): $(TMPL) $(TOOL) $(DEPS)
36a4e54154Smrg	$(AM_V_GEN) \
37c9710b42Smrg	$(RM) $(TARG) && \
38a4e54154Smrg	$(PYTHON) $(TOOL) $(ARGS) --template $< --output $(TARG).tmp && \
39c9710b42Smrg	mv $(TARG).tmp $(TARG) || ( $(RM) $(TARG).tmp && false )
40c9710b42Smrgnoinst_HEADERS=$(TARG)
41c9710b42Smrg
42c9710b42SmrgALIAS_FILES = fcalias.h fcaliastail.h
43c9710b42Smrg
44c9710b42SmrgBUILT_SOURCES = $(ALIAS_FILES)
45c9710b42Smrg
46c9710b42Smrg$(ALIAS_FILES):
47c9710b42Smrg	$(AM_V_GEN) touch $@
48c9710b42Smrg
49a4e54154SmrgCLEANFILES = $(ALIAS_FILES)
50c9710b42Smrg
51c9710b42SmrgMAINTAINERCLEANFILES = $(TARG)
52