diff options
Diffstat (limited to 'libX11/nls/makefile')
-rw-r--r-- | libX11/nls/makefile | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/libX11/nls/makefile b/libX11/nls/makefile index c38c8fd4e..e6bf47297 100644 --- a/libX11/nls/makefile +++ b/libX11/nls/makefile @@ -1,4 +1,8 @@ -SUBDIRS= \
+X11_LOCALEDATADIR = ..\..\xorg-server\locale
+
+x11localedir = $(X11_LOCALEDATADIR)
+x11locale_DATA = locale.alias locale.dir compose.dir
+locales = \
am_ET.UTF-8 \
armscii-8 \
C \
@@ -60,29 +64,22 @@ SUBDIRS= \ zh_TW.big5 \
zh_TW.UTF-8
-CPP_FILES_FLAGS = -DWCHAR32=@WCHAR32@
+include ../cpprules.mak
-X11_LOCALEDATADIR = ..\..\xorg-server\locale
-$(X11_LOCALEDATADIR)\locale.alias: locale.alias.pre
- cl /nologo /EP $< -DXCOMM\#\# > locale.alias.l1
- sed -e "/^[^\#][^ ]*:/s/://" -e "/^[^\#].*[ ].*:/d" < locale.alias.l1 > locale.alias.l2
- type locale.alias.l2 locale.alias.l1 > $@
- del locale.alias.l1
- del locale.alias.l2
+$(X11_LOCALEDATADIR)\%: %.pre
+ cl /nologo /EP $< -DXCOMM\#\# > $<.l1
+ sed -e "/^[^\#][^ ]*:/s/://" -e "/^[^\#].*[ ].*:/d" < $<.l1 > $<.l2
+ type $<.l2 $<.l1 > $@
+ del $<.l1
+ del $<.l2
+
+# Per-locale data files
+
+nobase_dist_x11locale_DATA = $(locales:%=%\XI18N_OBJS)
-$(X11_LOCALEDATADIR)\compose.dir: compose.dir.pre
- cl /nologo /EP $< -DXCOMM\#\# > compose.dir.l1
- sed -e "/^[^\#][^ ]*:/s/://" -e "/^[^\#].*[ ].*:/d" < compose.dir.l1 > compose.dir.l2
- type compose.dir.l2 compose.dir.l1 > $@
- del compose.dir.l1
- del compose.dir.l2
+nobase_x11locale_DATA = $(locales:%=%\XLC_LOCALE) $(locales:%=%\Compose)
-$(X11_LOCALEDATADIR)\locale.dir: locale.dir.pre
- cl /nologo /EP $< -DXCOMM\#\# > locale.dir.l1
- sed -e "/^[^\#][^ ]*:/s/://" -e "/^[^\#].*[ ].*:/d" < locale.dir.l1 > locale.dir.l2
- type locale.dir.l2 locale.dir.l1 > $@
- del locale.dir.l1
- del locale.dir.l2
+all_DATA = $(nobase_dist_x11locale_DATA) $(nobase_x11locale_DATA) $(x11locale_DATA)
-all: $(X11_LOCALEDATADIR)\locale.alias $(X11_LOCALEDATADIR)\compose.dir $(X11_LOCALEDATADIR)\locale.dir
+all: $(all_DATA:%=$(X11_LOCALEDATADIR)\%)
|