Makefile.am revision eceda581
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-rgb.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-no-sub-pixel.conf		\
72	10-scale-bitmap-fonts.conf	\
73	10-sub-pixel-bgr.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	20-unhint-small-vera.conf	\
83	25-unhint-nonlatin.conf		\
84	30-metric-aliases.conf		\
85	35-lang-normalize.conf		\
86	40-nonlatin.conf		\
87	45-generic.conf			\
88	45-latin.conf			\
89	48-spacing.conf			\
90	49-sansserif.conf		\
91	50-user.conf			\
92	51-local.conf			\
93	60-generic.conf			\
94	60-latin.conf			\
95	65-fonts-persian.conf		\
96	65-khmer.conf			\
97	65-nonlatin.conf		\
98	69-unifont.conf			\
99	70-no-bitmaps.conf		\
100	70-yes-bitmaps.conf		\
101	80-delicious.conf		\
102	90-synthetic.conf
103
104README: $(srcdir)/README.in
105	sed "s|\@TEMPLATEDIR\@|$(templatedir)|" $< > $@
106
10735-lang-normalize.conf: ../fc-lang/Makefile.am
108	cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/conf.d/35-lang-normalize.conf
109
110install-data-hook:
111	mkdir -p $(DESTDIR)$(configdir)
112	@(echo cd $(DESTDIR)$(configdir);			\
113	  cd $(DESTDIR)$(configdir);				\
114	  for i in $(CONF_LINKS); do				\
115	    echo $(RM) $$i";" ln -s $(templatedir)/$$i .;	\
116	    $(RM) $$i;						\
117	    ln -s $(templatedir)/$$i .;				\
118	  done)
119uninstall-local:
120	@(echo cd $(DESTDIR)$(configdir);			\
121	  cd $(DESTDIR)$(configdir);				\
122	  for i in $(CONF_LINKS); do				\
123	    echo $(RM) $$i;					\
124	    $(RM) $$i;						\
125	  done)
126
127-include $(top_srcdir)/git.mk
128