aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/nls/Imakefile
blob: 44140235737bc6722f876f7173b3896866bcf8cc (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
72
73
74
75
76
77
78
79
80
81
82
83
84
XCOMM $Xorg: Imakefile,v 1.4 2000/12/12 13:00:42 coskrey Exp $
XCOMM $XdotOrg: xc/nls/Imakefile,v 1.2 2004/04/23 18:44:33 eich Exp $




XCOMM $XFree86: xc/nls/Imakefile,v 1.9 2001/11/16 00:52:30 dawes Exp $

#define IHaveSubdirs
#define PassCDebugFlags

#if BuildLoadableXlibI18n
        SUBDIRS = XLC_LOCALE Compose XI18N_OBJS
#else
        SUBDIRS = XLC_LOCALE Compose
#endif
#if defined(FreeBSDArchitecture)
  RU_SU_DEFINES = -DINCLUDE_ru_SU
#endif
        DEFINES = $(RU_SU_DEFINES)

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

all::

#ifndef R63Compat
#define R63Compat YES
#endif

#ifndef Win32Architecture
#if R63Compat
# define LTarget(name)							@@\
CppFileTarget(name.l1,name,$(DEFINES),NullParameter)			@@\
									@@\
name.l2: name.l1							@@\
	rm -f name.l2							@@\
	sed -e '/^[^#][^ 	]*:/s/://' -e '/^[^#].*[ 	].*:/d' \ @@\
		< name.l1 > name.l2					@@\
									@@\
name.lt: name.l1 name.l2						@@\
	rm -f name.lt							@@\
	cat name.l2 name.l1 > name.lt					@@\
									@@\
AllTarget(name.lt)							@@\
	MakeDir($(BUILDI18NDIR))					@@\
	RemoveFile($(BUILDI18NDIR)/name)				@@\
	cd $(BUILDI18NDIR) && $(LN) $(BUILDLIBTOP)/../$(CURRENT_DIR)/name.lt name @@\
									@@\
InstallNamedNonExec(name.lt,name,$(XLOCALEDIR))				@@\
									@@\
clean::									@@\
	RemoveFiles(name.l1 name.l2 name.lt)
#else
# define LTarget(name)							@@\
CppFileTarget(name.lt,name,$(DEFINES),NullParameter)			@@\
									@@\
AllTarget(name.lt)							@@\
	MakeDir($(BUILDI18NDIR))					@@\
	LinkFileSpecial($(BUILDI18NDIR),name,$(BUILDLIBTOP)/../../$(CURRENT_DIR)/name.lt) @@\
									@@\
InstallNamedNonExec(name.lt,name,$(XLOCALEDIR))				@@\
									@@\
clean::									@@\
	RemoveFile(name.lt)
#endif
#else
# define LTarget(name)							@@\
CppFileTarget(name.lt,name,$(DEFINES),NullParameter)			@@\
									@@\
AllTargetName(name.lt)							@@\
	MakeDir($(BUILDLIBDIR:/=\)\locale)				@@\
	RemoveFile(Concat($(BUILDLIBDIR:/=\)\locale\,name))		@@\
	cd $(BUILDLIBDIR:/=\)\locale && $(LN) Concat($(BUILDLIBTOP:/=\)\..\$(CURRENT_DIR:/=\)\,name.lt) name @@\
									@@\
InstallNamedNonExec(name.lt,name,$(XLOCALEDIR))				@@\
									@@\
clean::									@@\
	RemoveFile(name.lt)
#endif

LTarget(locale.alias)
LTarget(locale.dir)
LTarget(compose.dir)