evdev.xml.in can be skipped by the translation - it is exactly same as base.xml.in
[xorg/xkeyboard-config] / rules / Makefile.am
1 SUBDIRS = compat
2
3 if CREATE_RULES_SYMLINK
4 #  extra_rules_file = $(xkb_rules_symlink)
5 #  extra_dir_file   = $(extra_rules_file).xml 
6 #  extra_lst_file   = $(extra_rules_file).lst
7
8 install-data-hook:
9         for file in `echo "$(xkb_rules_symlink)" | sed 's/,/ /'` ; do \
10                 extra_rules_file=$$file ; \
11                 extra_dir_file=$$extra_rules_file.xml ; \
12                 extra_lst_file=$$extra_rules_file.lst ; \
13                 ln -sf base     $(DESTDIR)$(rulesdir)/$$extra_rules_file ; \
14                 ln -sf base.lst $(DESTDIR)$(rulesdir)/$$extra_lst_file ; \
15                 ln -sf base.xml $(DESTDIR)$(rulesdir)/$$extra_dir_file ; \
16         done
17
18 else
19 install-data-hook:
20
21 endif
22
23 base_parts_no_compat = base.hdr.part base.lists.part \
24 HDR base.m_k.part \
25 HDR base.l1_k.part \
26 HDR base.l_k.part \
27 HDR base.ml_g.part \
28 HDR base.m_g.part \
29 HDR base.mlv_s.part \
30 HDR base.ml_s.part \
31 HDR base.ml1_s.part \
32 HDR \
33 HDR base.l2_s.part \
34 HDR base.l3_s.part \
35 HDR base.l4_s.part \
36 HDR HDR HDR \
37 HDR base.m_s.part \
38 HDR base.ml_c.part \
39 HDR base.ml1_c.part \
40 HDR base.m_t.part \
41 HDR base.l1o_s.part \
42 HDR base.l2o_s.part \
43 HDR base.l3o_s.part \
44 HDR base.l4o_s.part \
45 HDR base.o_s.part \
46 HDR base.o_c.part \
47 HDR base.o_t.part
48
49 evdev_parts_no_compat = base.hdr.part base.lists.part \
50 HDR evdev.m_k.part \
51 HDR base.l1_k.part \
52 HDR base.l_k.part  \
53 HDR base.ml_g.part \
54 HDR base.m_g.part \
55 HDR base.mlv_s.part \
56 HDR base.ml_s.part \
57 HDR base.ml1_s.part \
58 HDR \
59 HDR base.l2_s.part \
60 HDR base.l3_s.part \
61 HDR base.l4_s.part \
62 HDR HDR HDR \
63 HDR evdev.m_s.part \
64 HDR base.ml_c.part \
65 HDR base.ml1_c.part \
66 HDR base.m_t.part \
67 HDR base.l1o_s.part \
68 HDR base.l2o_s.part \
69 HDR base.l3o_s.part \
70 HDR base.l4o_s.part \
71 HDR base.o_s.part \
72 HDR base.o_c.part \
73 HDR base.o_t.part
74
75 if USE_COMPAT_RULES
76 base_parts = base.hdr.part base.lists.part \
77 compat/base.lists.part \
78 HDR base.m_k.part \
79 HDR base.l1_k.part \
80 HDR base.l_k.part \
81 HDR base.o_k.part \
82 HDR base.ml_g.part \
83 HDR base.m_g.part \
84 HDR compat/base.mlv_s.part base.mlv_s.part \
85 HDR compat/base.ml_s.part base.ml_s.part  \
86 HDR compat/base.ml1_s.part base.ml1_s.part \
87 HDR compat/base.ml1v1_s.part \
88 HDR compat/base.l2_s.part base.l2_s.part  \
89 HDR compat/base.l3_s.part base.l3_s.part  \
90 HDR compat/base.l4_s.part base.l4_s.part  \
91 HDR compat/base.l2v2_s.part \
92 HDR compat/base.l3v3_s.part \
93 HDR compat/base.l4v4_s.part \
94 HDR base.m_s.part \
95 HDR base.ml_c.part \
96 HDR base.ml1_c.part \
97 HDR base.m_t.part \
98 HDR base.lo_s.part \
99 HDR base.l1o_s.part \
100 HDR base.l2o_s.part \
101 HDR base.l3o_s.part \
102 HDR base.l4o_s.part \
103 HDR compat/base.o_s.part base.o_s.part \
104 HDR base.o_c.part \
105 HDR base.o_t.part
106
107 evdev_parts = base.hdr.part base.lists.part \
108 compat/base.lists.part \
109 HDR evdev.m_k.part \
110 HDR base.l1_k.part \
111 HDR base.l_k.part \
112 HDR base.o_k.part \
113 HDR base.ml_g.part \
114 HDR base.m_g.part \
115 HDR compat/base.mlv_s.part base.mlv_s.part \
116 HDR compat/base.ml_s.part base.ml_s.part  \
117 HDR compat/base.ml1_s.part base.ml1_s.part \
118 HDR compat/base.ml1v1_s.part \
119 HDR compat/base.l2_s.part base.l2_s.part  \
120 HDR compat/base.l3_s.part base.l3_s.part  \
121 HDR compat/base.l4_s.part base.l4_s.part  \
122 HDR compat/base.l2v2_s.part \
123 HDR compat/base.l3v3_s.part \
124 HDR compat/base.l4v4_s.part \
125 HDR evdev.m_s.part \
126 HDR base.ml_c.part \
127 HDR base.ml1_c.part \
128 HDR base.m_t.part \
129 HDR base.lo_s.part \
130 HDR base.l1o_s.part \
131 HDR base.l2o_s.part \
132 HDR base.l3o_s.part \
133 HDR base.l4o_s.part \
134 HDR compat/base.o_s.part base.o_s.part \
135 HDR base.o_c.part \
136 HDR base.o_t.part
137 else
138 base_parts = $(base_parts_no_compat)
139 evdev_parts = $(base_parts_no_compat)
140 endif
141
142 base_parts_compat_dist = base.o_k.part base.lo_s.part
143
144 rules_files = base evdev xfree98
145
146 lst_files = base.lst evdev.lst
147
148 %.lst: %.xml
149         perl $(srcdir)/xml2lst.pl < $< > $@
150
151 base: $(base_parts_no_compat)
152         HDR="$(srcdir)/HDR" $(srcdir)/merge.sh $@ $(base_parts)
153
154 evdev: $(evdev_parts_no_compat)
155         HDR="$(srcdir)/HDR" $(srcdir)/merge.sh $@ $(evdev_parts)
156
157 dist_files = xkb.dtd README
158
159 rules_DATA = $(rules_files) $(lst_files) $(dist_files)
160
161 xml_in_files = base.xml.in evdev.xml.in
162 xml_DATA = $(xml_in_files:.xml.in=.xml) 
163
164 $(srcdir)/evdev.xml.in: base.xml.in
165         cp $< $@
166
167 EXTRA_DIST= $(xml_in_files) xfree98 \
168             $(base_parts_no_compat) \
169             $(evdev_parts_no_compat) \
170             $(base_parts_compat_dist) \
171             xml2lst.pl merge.sh $(dist_files)
172
173 CLEANFILES = base base.xml base.lst evdev evdev.xml evdev.lst
174 MAINTAINERCLEANFILES = $(srcdir)/evdev.xml.in
175
176 rulesdir = $(xkb_base)/rules
177 xmldir = $(rulesdir)
178
179 @INTLTOOL_XML_NOMERGE_RULE@