summaryrefslogtreecommitdiff
path: root/rules/Makefile.am
blob: 46f649b951549f7ecac031757307fb9bd759b092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SUBDIRS = compat

if CREATE_RULES_SYMLINK
  extra_rules_file = $(xkb_rules_symlink)
  extra_dir_file   = $(extra_rules_file).xml 
  extra_lst_file   = $(extra_rules_file).lst

install-data-hook:
	ln -sf base     $(DESTDIR)$(rulesdir)/$(extra_rules_file)
	ln -sf base.lst $(DESTDIR)$(rulesdir)/$(extra_lst_file)
	ln -sf base.xml $(DESTDIR)$(rulesdir)/$(extra_dir_file)

else
install-data-hook:

endif

if USE_COMPAT_RULES
base_parts = base.hdr.part  base.lists.part \
compat/base.lists.part \
HDR base.m_k.part   HDR base.l1_k.part        HDR base.l_k.part  \
HDR base.m_g.part \
HDR compat/base.mlv_s.part base.mlv_s.part \
HDR compat/base.ml_s.part  base.ml_s.part  \
HDR compat/base.ml1_s.part base.ml1_s.part \
HDR compat/base.ml1v1_s.part \
HDR compat/base.l2_s.part  base.l2_s.part  \
HDR compat/base.l3_s.part  base.l3_s.part  \
HDR compat/base.l4_s.part  base.l4_s.part  \
HDR compat/base.l2v2_s.part \
HDR compat/base.l3v3_s.part \
HDR compat/base.l4v4_s.part \
HDR base.m_s.part  HDR base.ml_c.part        HDR base.ml1_c.part \
HDR base.m_t.part \
HDR compat/base.o_s.part base.o_s.part \
HDR base.o_c.part HDR base.o_t.part
else
base_parts = base.hdr.part  base.lists.part \
HDR base.m_k.part   HDR base.l1_k.part  HDR base.l_k.part  \
HDR base.m_g.part   HDR base.mlv_s.part HDR base.ml_s.part \
HDR base.ml1_s.part HDR \
HDR base.l2_s.part  HDR base.l3_s.part  HDR base.l4_s.part HDR HDR HDR \
HDR base.m_s.part   HDR base.ml_c.part  HDR base.ml1_c.part \
HDR base.m_t.part \
HDR base.o_s.part   HDR base.o_c.part   HDR base.o_t.part
endif

rules_files = base sgi sun xfree98

lst_files = base.lst

%.lst: %.xml
	perl $(srcdir)/xml2lst.pl < $< > $@

base: $(base_parts)
	$(srcdir)/merge.sh $@ $+

all_rules_files = $(rules_files) $(lst_files) \
xkb.dtd README

rules_DATA = $(all_rules_files)

xml_in_files = base.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml) 

EXTRA_DIST= $(all_rules_files) $(xml_in_files) $(base_parts) xml2lst.pl merge.sh

rulesdir = $(xkb_base)/rules
xmldir = $(rulesdir)

@INTLTOOL_XML_RULE@