Get /usr/dt/config populated correctly on make install
[oweals/cde.git] / cde / programs / localized / templates / config.am
1 # process the config files...
2
3 # We can't do parallel builds here because MERGE is rather dumb and
4 # hardcodes file names and the like.
5 .NOTPARALLEL:
6
7 BUILT_SOURCES = sys.resources sys.session sys.font sys.dtwmrc   \
8         Xresources dtfile.config home.session current.session   \
9         display.home.session display.current.session 0100.session \
10         0120.session 0140.session 0160.session
11
12 if SOLARIS
13 BUILT_SOURCES += Xresources.ow
14 endif
15
16 CLEANFILES = $(BUILT_SOURCES)
17
18 cfgmaindir = $(CDE_INSTALLATION_TOP)/config/$(LANG)
19 dist_cfgmain_DATA = dtfile.config sys.dtwmrc sys.resources Xresources   \
20         sys.font sys.session
21
22 cfgrsrcdir = $(CDE_INSTALLATION_TOP)/config/$(LANG)/Xresources.d
23 dist_cfgrsrc_DATA = 0100.session 0120.session 0140.session      \
24         0160.session
25
26 TOP = $(top_builddir)/programs
27 MERGE = $(top_builddir)/programs/localized/util/merge
28
29 # these are the names these 4 file are really installed as, so create
30 # symlinks to them for installation
31 0100.session: current.session
32         $(RM) $@
33         $(LN_S) $< $@
34
35 0120.session: home.session
36         $(RM) $@
37         $(LN_S) $< $@
38
39 0140.session: display.current.session
40         $(RM) $@
41         $(LN_S) $< $@
42
43 0160.session: display.home.session
44         $(RM) $@
45         $(LN_S) $< $@
46
47
48 # these are the real targets
49 sys.resources: $(TOP)/dtsession/sys.resources sys.resources.tmsg
50         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
51
52 sys.session: $(TOP)/dtsession/sys.session sys.session.tmsg
53         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
54
55 sys.font: $(TOP)/dtsession/sys.font sys.font.tmsg
56         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
57
58 sys.dtwmrc: $(TOP)/dtwm/sys.dtwmrc sys.dtwmrc.tmsg
59         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
60
61 Xresources: $(TOP)/dtlogin/config/Xresources Xresources.tmsg
62         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
63
64 if SOLARIS
65 Xresources.ow: $(TOP)/dtlogin/config/Xresources.ow Xresources.ow.tmsg
66         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
67 endif
68
69 dtfile.config: $(TOP)/dtfile/dtfile.config dtfile.config.tmsg
70         $(MERGE) -lang $(LANG) $@.tmsg < $< > $@ || $(RM) $@
71
72 home.session: $(TOP)/dtlogin/config/home.session _common.session.tmsg
73         $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
74
75 current.session: $(TOP)/dtlogin/config/current.session _common.session.tmsg
76         $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
77
78 display.home.session: $(TOP)/dtlogin/config/display.home.session _common.session.tmsg
79         $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
80
81 display.current.session: $(TOP)/dtlogin/config/display.current.session _common.session.tmsg
82         $(MERGE) -lang $(LANG) _common.session.tmsg < $< > $@ || $(RM) $@
83