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 \
24 HDR base.m_k.part HDR base.l1_k.part HDR base.l_k.part \
26 HDR base.m_g.part HDR base.mlv_s.part HDR base.ml_s.part \
27 HDR base.ml1_s.part HDR \
28 HDR base.l2_s.part HDR base.l3_s.part HDR base.l4_s.part HDR HDR HDR \
29 HDR base.m_s.part HDR base.ml_c.part HDR base.ml1_c.part \
31 HDR base.l1o_s.part HDR base.l2o_s.part HDR base.l3o_s.part HDR base.l4o_s.part \
32 HDR base.o_s.part HDR base.o_c.part HDR base.o_t.part
35 base_parts = base.hdr.part base.lists.part \
36 compat/base.lists.part \
37 HDR base.m_k.part HDR base.l1_k.part \
38 HDR base.l_k.part HDR base.o_k.part \
41 HDR compat/base.mlv_s.part base.mlv_s.part \
42 HDR compat/base.ml_s.part base.ml_s.part \
43 HDR compat/base.ml1_s.part base.ml1_s.part \
44 HDR compat/base.ml1v1_s.part \
45 HDR compat/base.l2_s.part base.l2_s.part \
46 HDR compat/base.l3_s.part base.l3_s.part \
47 HDR compat/base.l4_s.part base.l4_s.part \
48 HDR compat/base.l2v2_s.part \
49 HDR compat/base.l3v3_s.part \
50 HDR compat/base.l4v4_s.part \
51 HDR base.m_s.part HDR base.ml_c.part HDR base.ml1_c.part \
53 HDR base.lo_s.part HDR base.l1o_s.part HDR base.l2o_s.part HDR base.l3o_s.part HDR base.l4o_s.part \
54 HDR compat/base.o_s.part base.o_s.part \
55 HDR base.o_c.part HDR base.o_t.part
57 base_parts = $(base_parts_no_compat)
60 rules_files = base sgi sun xfree98
65 perl $(srcdir)/xml2lst.pl < $< > $@
67 base: $(base_parts_no_compat)
68 HDR="$(srcdir)/HDR" $(srcdir)/merge.sh $@ $(base_parts)
70 all_rules_files = $(rules_files) $(lst_files) \
73 rules_DATA = $(all_rules_files)
75 xml_in_files = base.xml.in sun.xml.in
76 xml_DATA = $(xml_in_files:.xml.in=.xml)
78 EXTRA_DIST= $(all_rules_files) $(xml_in_files) $(base_parts) xml2lst.pl merge.sh
80 DISTCLEANFILES=base.xml base.lst sun.xml
82 rulesdir = $(xkb_base)/rules
85 @INTLTOOL_XML_NOMERGE_RULE@