Apply ASLR to executable files.
[platform/upstream/fontconfig.git] / conf.d / Makefile.am
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
24 BUILT_SOURCES = README
25 DOC_SOURCES = README.in
26 DOC_FILES = $(DOC_SOURCES:.in=)
27
28 CONF_LINKS = \
29         10-hinting-$(PREFERRED_HINTING).conf    \
30         10-scale-bitmap-fonts.conf \
31         20-unhint-small-vera.conf \
32         30-urw-aliases.conf \
33         30-metric-aliases.conf \
34         40-nonlatin.conf \
35         45-latin.conf \
36         49-sansserif.conf \
37         50-user.conf \
38         51-local.conf \
39         60-latin.conf \
40         65-fonts-persian.conf \
41         65-nonlatin.conf \
42         69-unifont.conf \
43         80-delicious.conf \
44         90-synthetic.conf
45
46 EXTRA_DIST = $(template_DATA) $(DOC_SOURCES)
47 CLEANFILES = $(DOC_FILES)
48
49 configdir = $(CONFIGDIR)
50 config_DATA = $(DOC_FILES)
51
52 templatedir = $(TEMPLATEDIR)
53 template_DATA =                         \
54         10-autohint.conf                \
55         10-hinting-full.conf            \
56         10-hinting-medium.conf          \
57         10-hinting-none.conf            \
58         10-hinting-slight.conf          \
59         10-no-sub-pixel.conf            \
60         10-scale-bitmap-fonts.conf      \
61         10-sub-pixel-bgr.conf           \
62         10-sub-pixel-rgb.conf           \
63         10-sub-pixel-vbgr.conf          \
64         10-sub-pixel-vrgb.conf          \
65         10-unhinted.conf                \
66         11-lcdfilter-default.conf       \
67         11-lcdfilter-legacy.conf        \
68         11-lcdfilter-light.conf         \
69         20-unhint-small-vera.conf       \
70         25-unhint-nonlatin.conf         \
71         30-urw-aliases.conf             \
72         30-metric-aliases.conf          \
73         40-nonlatin.conf                \
74         45-latin.conf                   \
75         49-sansserif.conf               \
76         50-user.conf                    \
77         51-local.conf                   \
78         60-latin.conf                   \
79         65-fonts-persian.conf           \
80         65-khmer.conf                   \
81         65-nonlatin.conf                \
82         69-unifont.conf                 \
83         70-no-bitmaps.conf              \
84         70-yes-bitmaps.conf             \
85         80-delicious.conf               \
86         90-synthetic.conf
87
88 README: $(srcdir)/README.in
89         sed "s|\@TEMPLATEDIR\@|$(templatedir)|" $< > $@
90
91 install-data-hook:
92         mkdir -p $(DESTDIR)$(configdir)
93         @(echo cd $(DESTDIR)$(configdir);                       \
94           cd $(DESTDIR)$(configdir);                            \
95           for i in $(CONF_LINKS); do                            \
96             echo $(RM) $$i";" ln -s $(templatedir)/$$i .;       \
97             $(RM) $$i;                                          \
98             ln -s $(templatedir)/$$i .;                         \
99           done)
100 uninstall-local:
101         @(echo cd $(DESTDIR)$(configdir);                       \
102           cd $(DESTDIR)$(configdir);                            \
103           for i in $(CONF_LINKS); do                            \
104             echo $(RM) $$i;                                     \
105             $(RM) $$i;                                          \
106           done)
107
108 -include $(top_srcdir)/git.mk