2b2075f8b1fb7e3029f875ebb0da07639750da35
[platform/upstream/fontconfig.git] / fc-blanks / Makefile.am
1 # -*- encoding: utf-8 -*-
2 #
3 # Copyright © 2003  Keith Packard
4 #
5 # Permission to use, copy, modify, distribute, and sell this software and its
6 # documentation for any purpose is hereby granted without fee, provided that
7 # the above copyright notice appear in all copies and that both that
8 # copyright notice and this permission notice appear in supporting
9 # documentation, and that the name of the author(s) not be used in
10 # advertising or publicity pertaining to distribution of the software without
11 # specific, written prior permission.  The authors make no
12 # representations about the suitability of this software for any purpose.  It
13 # is provided "as is" without express or implied warranty.
14 #
15 # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
17 # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
19 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
20 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 # PERFORMANCE OF THIS SOFTWARE.
22
23 NULL =
24 BLANKSPY = fc-blanks.py
25 BLANKS_H = fcblanks.h
26 TMPL = fcblanks.tmpl.h
27 noinst_SCRIPTS = $(BLANKSPY)
28 noinst_HEADERS = $(BLANKS_H)
29
30 $(BLANKS_H): $(TMPL) $(BLANKSPY)
31 if HAVE_PYTHON
32         $(AM_V_GEN) $(PYTHON) $(srcdir)/$(BLANKSPY) < $< > $(BLANKS_H).tmp && \
33         mv $(BLANKS_H).tmp $(BLANKS_H) || ($(RM) $(BLANKS_H).tmp && false)
34 else
35         @echo "No python installed. please install python to build $(BLANKS_H)."
36         @false
37 endif
38
39 EXTRA_DIST =            \
40         $(BLANKSPY)     \
41         $(BLANKS_H)     \
42         $(TMPL)         \
43         $(NULL)
44 DISTCLEANFILES = $(BLANKS_H)
45
46 -include $(top_srcdir)/git.mk