summaryrefslogtreecommitdiff
path: root/rules/Makefile.am
diff options
context:
space:
mode:
authorsvu <svu>2004-04-15 23:58:28 +0000
committersvu <svu>2004-04-15 23:58:28 +0000
commitc61a7e7404dc50b5d1e5fffc67ec367b58e0125c (patch)
tree6e70432ff0166d045773d25c6347521ab259445e /rules/Makefile.am
parentfff688949cf0becaefb35984f6a079cb99430513 (diff)
downloadxkeyboard-config-c61a7e7404dc50b5d1e5fffc67ec367b58e0125c.tar.gz
now, the symlinks allow distributors to use their own names for the rules - though not really recommended, we have to be backward-compatible
Diffstat (limited to 'rules/Makefile.am')
-rw-r--r--rules/Makefile.am20
1 files changed, 17 insertions, 3 deletions
diff --git a/rules/Makefile.am b/rules/Makefile.am
index 722eb07..9642a10 100644
--- a/rules/Makefile.am
+++ b/rules/Makefile.am
@@ -1,14 +1,28 @@
-rules_DATA = \
+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 -s base $(DESTDIR)$(rulesdir)/$(extra_rules_file)
+ ln -s base.lst $(DESTDIR)$(rulesdir)/$(extra_lst_file)
+ ln -s base.xml $(DESTDIR)$(rulesdir)/$(extra_dir_file)
+
+endif
+
+rules_files = \
base base-it.lst base.lst \
sgi sgi.lst \
sun sun.lst \
xfree98 xfree98.lst \
xkb.dtd README
+rules_DATA = $(rules_files)
+
xml_in_files = base.xml.in
-xml_DATA = $(xml_in_files:.xml.in=.xml)
+xml_DATA = $(xml_in_files:.xml.in=.xml)
-EXTRA_DIST= $(rules_DATA) $(xml_in_files) xml2lst.pl
+EXTRA_DIST= $(rules_files) $(xml_in_files) xml2lst.pl
rulesdir = $(xkb_base)/rules
xmldir = $(rulesdir)