1#
2#  fontconfig/conf.d/Makefile.am
3#
4#  Copyright © 2005 Keith Packard
5#
6#  Permission to use, copy, modify, distribute, and sell this software and its
7#  documentation for any purpose is hereby granted without fee, provided that
8#  the above copyright notice appear in all copies and that both that
9#  copyright notice and this permission notice appear in supporting
10#  documentation, and that the name of the author(s) not be used in
11#  advertising or publicity pertaining to distribution of the software without
12#  specific, written prior permission.  The authors make no
13#  representations about the suitability of this software for any purpose.  It
14#  is provided "as is" without express or implied warranty.
15#
16#  THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18#  EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22#  PERFORMANCE OF THIS SOFTWARE.
23
24NULL =
25BUILT_SOURCES = 		\
26	README			\
27	35-lang-normalize.conf	\
28	$(NULL)
29DOC_SOURCES = README.in
30DOC_FILES = $(DOC_SOURCES:.in=)
31
32CONF_LINKS = \
33	10-hinting-$(PREFERRED_HINTING).conf	\
34	10-scale-bitmap-fonts.conf \
35	10-yes-antialias.conf	\
36	10-sub-pixel-$(PREFERRED_SUB_PIXEL_RENDERING).conf	\
37	11-lcdfilter-default.conf \
38	20-unhint-small-vera.conf \
39	30-metric-aliases.conf \
40	40-nonlatin.conf \
41	45-generic.conf \
42	45-latin.conf \
43	48-spacing.conf \
44	49-sansserif.conf \
45	50-user.conf \
46	51-local.conf \
47	60-generic.conf \
48	60-latin.conf \
49	65-fonts-persian.conf \
50	65-nonlatin.conf \
51	69-unifont.conf \
52	80-delicious.conf \
53	90-synthetic.conf
54
55EXTRA_DIST = $(template_DATA) $(DOC_SOURCES)
56CLEANFILES = $(DOC_FILES)
57
58configdir = $(CONFIGDIR)
59config_DATA = $(DOC_FILES)
60
61templatedir = $(TEMPLATEDIR)
62template_DATA =				\
63	05-reset-dirs-sample.conf	\
64	09-autohint-if-no-hinting.conf	\
65	10-autohint.conf		\
66	10-hinting-full.conf		\
67	10-hinting-medium.conf		\
68	10-hinting-none.conf		\
69	10-hinting-slight.conf		\
70	10-no-antialias.conf		\
71	10-scale-bitmap-fonts.conf	\
72	10-sub-pixel-bgr.conf		\
73	10-sub-pixel-none.conf		\
74	10-sub-pixel-rgb.conf		\
75	10-sub-pixel-vbgr.conf		\
76	10-sub-pixel-vrgb.conf		\
77	10-unhinted.conf		\
78	10-yes-antialias.conf		\
79	11-lcdfilter-default.conf	\
80	11-lcdfilter-legacy.conf	\
81	11-lcdfilter-light.conf		\
82	11-lcdfilter-none.conf		\
83	20-unhint-small-vera.conf	\
84	25-unhint-nonlatin.conf		\
85	30-metric-aliases.conf		\
86	35-lang-normalize.conf		\
87	40-nonlatin.conf		\
88	45-generic.conf			\
89	45-latin.conf			\
90	48-spacing.conf			\
91	49-sansserif.conf		\
92	50-user.conf			\
93	51-local.conf			\
94	60-generic.conf			\
95	60-latin.conf			\
96	65-fonts-persian.conf		\
97	65-khmer.conf			\
98	65-nonlatin.conf		\
99	69-unifont.conf			\
100	70-no-bitmaps.conf		\
101	70-yes-bitmaps.conf		\
102	80-delicious.conf		\
103	90-synthetic.conf
104
105README: $(srcdir)/README.in
106	sed "s|\@TEMPLATEDIR\@|$(templatedir)|" $< > $@
107
10835-lang-normalize.conf: ../fc-lang/Makefile.am
109	cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/conf.d/35-lang-normalize.conf
110
111install-data-hook:
112	$(PYTHON) $(srcdir)/link_confs.py $(templatedir) $(configdir) $(CONF_LINKS)
113uninstall-local:
114	@(echo cd $(DESTDIR)$(configdir);			\
115	  cd $(DESTDIR)$(configdir);				\
116	  for i in $(CONF_LINKS); do				\
117	    echo $(RM) $$i;					\
118	    $(RM) $$i;						\
119	  done)
120
121-include $(top_srcdir)/git.mk
122