# GNUmakefile
#
# Copyright (C) 1995, 1996 Ovidiu Predescu and Mircea Oancea.
# All rights reserved.
#
# Author: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
#
# This file is part of libFoundation.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation.
#
# We disclaim all warranties with regard to this software, including all
# implied warranties of merchantability and fitness, in no event shall
# we be liable for any special, indirect or consequential damages or any
# damages whatsoever resulting from loss of use, data or profits, whether in
# an action of contract, negligence or other tortious action, arising out of
# or in connection with the use or performance of this software.

TOP	= ..

include $(TOP)/config.mak

CHARSETS = alphanumericCharacterSet.bitmap controlCharacterSet.bitmap \
	decimalDigitCharacterSet.bitmap decomposableCharacterSet.bitmap \
	emptyCharacterSet.bitmap illegalCharacterSet.bitmap \
	letterCharacterSet.bitmap lowercaseLetterCharacterSet.bitmap \
	nonBaseCharacterSet.bitmap uppercaseLetterCharacterSet.bitmap \
	whitespaceAndNewlineCharacterSet.bitmap whitespaceCharacterSet.bitmap \
	punctuationCharacterSet.bitmap

TIMEZONES = CET CST6CDT EET EST EST5EDT GB-Eire GMT GMT+1 GMT+10 \
	GMT+11 GMT+12 GMT+13 GMT+2 GMT+3 GMT+4 GMT+5 GMT+6 GMT+7 GMT+8 GMT+9 \
	GMT-1 GMT-10 GMT-11 GMT-12 GMT-2 GMT-3 GMT-4 GMT-5 GMT-6 GMT-7 GMT-8 \
	GMT-9 Greenwich Singapore Iceland Japan MET MST MST7MDT NZ Poland \
	PST8PDT UCT UTC Universal HST W-SU WET Turkey RegionsDictionary 

TIMEZONE_DIRS = Australia Canada SystemV US

Australia_ZONES = North NSW Queensland South Victoria West Tasmania
Canada_ZONES = Atlantic Central East-Saskatchewan Eastern Mountain \
	Newfoundland Pacific Yukon
SystemV_ZONES = AST4 AST4ADT CST6 CST6CDT EST5 EST5EDT HST10 MST7 MST7MDT \
	PST8 PST8PDT YST9 YST9YDT
US_ZONES = Arizona Central Eastern Hawaii Mountain Pacific Yukon Pacific-New \
	East-Indiana

DEFAULTS = $(wildcard Defaults/*.plist)

all clean distclean realclean check check-all:

install:
	$(TOP)/mkinstalldirs $(sharedstatedir)/CharacterSets
	$(TOP)/mkinstalldirs $(sharedstatedir)/TimeZoneInfo
	$(TOP)/mkinstalldirs $(sharedstatedir)/Defaults
	$(INSTALL_DATA) $(addprefix TimeZoneInfo/, $(TIMEZONES)) \
	    $(sharedstatedir)/TimeZoneInfo
	$(TOP)/mkinstalldirs $(sharedstatedir)/TimeZoneInfo/Australia; \
	$(INSTALL_DATA) \
	    $(addprefix TimeZoneInfo/Australia/, $(Australia_ZONES)) \
	    $(sharedstatedir)/TimeZoneInfo/Australia
	$(TOP)/mkinstalldirs $(sharedstatedir)/TimeZoneInfo/Canada; \
	$(INSTALL_DATA) \
	    $(addprefix TimeZoneInfo/Canada/, $(Canada_ZONES)) \
	    $(sharedstatedir)/TimeZoneInfo/Canada
	$(TOP)/mkinstalldirs $(sharedstatedir)/TimeZoneInfo/SystemV; \
	$(INSTALL_DATA) \
	    $(addprefix TimeZoneInfo/SystemV/, $(SystemV_ZONES)) \
	    $(sharedstatedir)/TimeZoneInfo/SystemV
	$(TOP)/mkinstalldirs $(sharedstatedir)/TimeZoneInfo/US; \
	$(INSTALL_DATA) \
	    $(addprefix TimeZoneInfo/US/, $(US_ZONES)) \
	    $(sharedstatedir)/TimeZoneInfo/US
	$(INSTALL_DATA) $(addprefix CharacterSets/, $(CHARSETS)) \
	    $(sharedstatedir)/CharacterSets
	$(INSTALL_DATA) $(DEFAULTS) $(sharedstatedir)/Defaults

uninstall:
	rm -rf $(addprefix $(sharedstatedir)/, \
		    CharacterSets TimeZoneInfo  Defaults)
