Makefile.am revision 2c393a42
1# 
2#  $Id: Makefile.am,v 1.1.1.1 2008/07/30 01:24:15 mrg Exp $
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 Keith Packard not be used in
11#  advertising or publicity pertaining to distribution of the software without
12#  specific, written prior permission.  Keith Packard makes 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#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18#  EVENT SHALL KEITH PACKARD 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
24DOC_FILES= \
25	README
26
27CONF_FILES = \
28	10-autohint.conf \
29	10-no-sub-pixel.conf \
30	10-sub-pixel-bgr.conf \
31	10-sub-pixel-rgb.conf \
32	10-sub-pixel-vbgr.conf \
33	10-sub-pixel-vrgb.conf \
34	10-unhinted.conf \
35	20-fix-globaladvance.conf \
36	20-unhint-small-vera.conf \
37	25-unhint-nonlatin.conf \
38	30-urw-aliases.conf \
39	30-metric-aliases.conf \
40	40-nonlatin.conf \
41	45-latin.conf \
42	49-sansserif.conf \
43	50-user.conf \
44	51-local.conf \
45	60-latin.conf \
46	65-fonts-persian.conf \
47	65-khmer.conf \
48	65-nonlatin.conf \
49	69-unifont.conf \
50	70-no-bitmaps.conf \
51	70-yes-bitmaps.conf \
52	80-delicious.conf \
53	90-synthetic.conf
54
55CONF_LINKS = \
56	20-fix-globaladvance.conf \
57	20-unhint-small-vera.conf \
58	30-urw-aliases.conf \
59	30-metric-aliases.conf \
60	40-nonlatin.conf \
61	45-latin.conf \
62	49-sansserif.conf \
63	50-user.conf \
64	51-local.conf \
65	60-latin.conf \
66	65-fonts-persian.conf \
67	65-nonlatin.conf \
68	69-unifont.conf \
69	80-delicious.conf \
70	90-synthetic.conf
71
72EXTRA_DIST = $(CONF_FILES) $(DOC_FILES)
73
74configdir=$(CONFDIR)
75confavaildir=$(configdir)/conf.avail
76confddir=$(configdir)/conf.d
77
78confavail_DATA=$(CONF_FILES)
79confd_DATA=$(DOC_FILES)
80
81install-data-local:
82	mkdir -p ${DESTDIR}${confddir}
83	@(echo cd ${DESTDIR}${confddir}; \
84	 cd ${DESTDIR}${confddir}; \
85	 for i in ${CONF_LINKS}; do \
86	 	rm -f $$i; \
87		echo rm -f $$i";" ln -s ../conf.avail/$$i .; \
88		ln -s ../conf.avail/$$i .; \
89	 done)
90