diff options
Diffstat (limited to 'xc/nls/Imakefile')
-rw-r--r-- | xc/nls/Imakefile | 61 |
1 files changed, 48 insertions, 13 deletions
diff --git a/xc/nls/Imakefile b/xc/nls/Imakefile index 4c0b5c158..a4ed45ba6 100644 --- a/xc/nls/Imakefile +++ b/xc/nls/Imakefile @@ -3,7 +3,7 @@ XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:46:48 cpqbld Exp $ -XCOMM $XFree86: xc/nls/Imakefile,v 1.6 2001/01/17 19:37:04 dawes Exp $ +XCOMM $XFree86: xc/nls/Imakefile,v 1.8 2001/08/18 11:26:53 tsi Exp $ #define IHaveSubdirs #define PassCDebugFlags @@ -12,46 +12,81 @@ XCOMM $XFree86: xc/nls/Imakefile,v 1.6 2001/01/17 19:37:04 dawes Exp $ #if defined(FreeBSDArchitecture) RU_SU_DEFINES = -DINCLUDE_ru_SU #endif - DEFINES = -DR63_COMPAT $(RU_SU_DEFINES) + DEFINES = $(RU_SU_DEFINES) MakeSubdirs($(SUBDIRS)) DependSubdirs($(SUBDIRS)) +all:: + +#ifndef R63Compat +#define R63Compat YES +#endif + #ifndef Win32Architecture #ifndef OS2Architecture +#if R63Compat # define LTarget(name) @@\ -all:: name.lt @@\ +CppFileTarget(name.l1,name,$(DEFINES),NullParameter) @@\ @@\ -CppFileTarget(name.lt,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 @@\ @@\ -all:: name.lt @@\ +AllTarget(name.lt) @@\ MakeDir($(BUILDLIBDIR)/locale) @@\ RemoveFile($(BUILDLIBDIR)/locale/name) @@\ cd $(BUILDLIBDIR)/locale && $(LN) $(BUILDLIBTOP)/../$(CURRENT_DIR)/name.lt name @@\ -InstallNamedNonExec(name.lt,name,$(XLOCALEDIR)) + @@\ +InstallNamedNonExec(name.lt,name,$(XLOCALEDIR)) @@\ + @@\ +clean:: @@\ + RemoveFiles(name.l1 name.l2 name.lt) #else # define LTarget(name) @@\ -all:: name.lt @@\ +CppFileTarget(name.lt,name,$(DEFINES),NullParameter) @@\ + @@\ +AllTarget(name.lt) @@\ + MakeDir($(BUILDLIBDIR)/locale) @@\ + RemoveFile($(BUILDLIBDIR)/locale/name) @@\ + cd $(BUILDLIBDIR)/locale && $(LN) $(BUILDLIBTOP)/../$(CURRENT_DIR)/name.lt name @@\ + @@\ +InstallNamedNonExec(name.lt,name,$(XLOCALEDIR)) @@\ @@\ +clean:: @@\ + RemoveFile(name.lt) +#endif +#else +# define LTarget(name) @@\ CppFileTarget(name.lt,name,$(DEFINES),NullParameter) @@\ @@\ -all:: name.lt @@\ +AllTarget(name.lt) @@\ MakeDir($(BUILDLIBDIR)/locale) @@\ LinkFileSpecial($(BUILDLIBDIR)/locale,name,$(BUILDLIBTOP)/../../$(CURRENT_DIR)/name.lt) @@\ @@\ -InstallNamedNonExec(name.lt,name,$(XLOCALEDIR)) +InstallNamedNonExec(name.lt,name,$(XLOCALEDIR)) @@\ + @@\ +clean:: @@\ + RemoveFile(name.lt) #endif #else # define LTarget(name) @@\ -all:: name.lt @@\ - @@\ CppFileTarget(name.lt,name,$(DEFINES),NullParameter) @@\ @@\ -all:: name.lt @@\ +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)) + @@\ +InstallNamedNonExec(name.lt,name,$(XLOCALEDIR)) @@\ + @@\ +clean:: @@\ + RemoveFile(name.lt) #endif LTarget(locale.alias) |