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
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 ; \
23 base_parts_no_compat = base.hdr.part base.lists.part \
49 evdev_parts_no_compat = base.hdr.part base.lists.part \
76 base_parts = base.hdr.part base.lists.part \
77 compat/base.lists.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 \
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 \
107 evdev_parts = base.hdr.part base.lists.part \
108 compat/base.lists.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 \
127 HDR base.ml1_c.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 \
138 base_parts = $(base_parts_no_compat)
139 evdev_parts = $(base_parts_no_compat)
142 base_parts_compat_dist = base.o_k.part base.lo_s.part
144 rules_files = base evdev xfree98
146 lst_files = base.lst evdev.lst
149 perl $(srcdir)/xml2lst.pl < $< > $@
151 base: $(base_parts_no_compat)
152 HDR="$(srcdir)/HDR" $(srcdir)/merge.sh $@ $(base_parts)
154 evdev: $(evdev_parts_no_compat)
155 HDR="$(srcdir)/HDR" $(srcdir)/merge.sh $@ $(evdev_parts)
157 dist_files = xkb.dtd README
159 rules_DATA = $(rules_files) $(lst_files) $(dist_files)
161 xml_in_files = base.xml.in evdev.xml.in
162 xml_DATA = $(xml_in_files:.xml.in=.xml)
164 $(srcdir)/evdev.xml.in: base.xml.in
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)
173 CLEANFILES = base base.xml base.lst evdev evdev.xml evdev.lst
174 MAINTAINERCLEANFILES = $(srcdir)/evdev.xml.in
176 rulesdir = $(xkb_base)/rules
179 @INTLTOOL_XML_NOMERGE_RULE@