XCOMM $Xorg: Imakefile,v 1.2 2002/11/23 05:42:52 gisburn Exp $
#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"

SUBDIRS = \
	C \
	en_US

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

InstallNonExecFile(README,$(XPRINTDIR)/)

# List of locales which should be linked to the "C" locale
C_LOCALES= \
	POSIX \
	de \
	de.ISO8859-15 \
	de.UTF-8 \
	de.UTF-8@euro \
	de_AT \
	de_AT@euro \
	de_AT.ISO8859-1 \
	de_AT.ISO8859-15 \
	de_AT.ISO8859-15@euro \
	de_AT.utf8 \
	de_AT.utf8@euro \
	de_BE \
	de_BE@euro \
	de_BE.utf8 \
	de_BE.utf8@euro \
	de_CH \
	de_CH.ISO8859-1 \
	de_CH.utf8 \
	de_DE \
	de_DE.ISO8859-1 \
	de_DE.ISO8859-15 \
	de_DE.ISO8859-15@euro \
	de_DE.UTF-8 \
	de_DE.UTF-8@euro \
	de_DE@euro \
	de_DE.utf8 \
	de_DE.utf8@euro \
	de_LU \
	de_LU@euro \
	de_LU.utf8 \
	de_LU.utf8@euro

# List of locales which should be linked to the "en_US" locale,
# e.g. these locales should get the defaults (for example that
# US-Letter is used as default papersize) mainly used in the USA
US_LOCALES= \
	en_US.UTF-8 \
	en_US.utf8 \
	en_US.ISO8859-1 \
	en_US.ISO8859-15 \
	en_US.iso885915 \
	en_US.ISO8859-15@euro \
	en_BW \
	en_CA \
	en_ZW \
	es_PR \
	es_US \
	fr_CA \
	ja_JP \
	ko_KR \
	tr_TR \
	yi_US

install::
	( \
	  cd $(DESTDIR)$(XPRINTDIR) ; \
	  for i in $(C_LOCALES) \
	  ; do \
	    $(RM) $$i ; \
	    $(LN) C $$i ; \
	  done \
	) ; \
	( \
	  cd $(DESTDIR)$(XPRINTDIR) ; \
	  for i in $(US_LOCALES) \
	  ; do \
	    $(RM) $$i ; \
	    $(LN) en_US $$i ; \
	  done \
	)

