Makefile 2.0 KB
Newer Older
D
duke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#
#
#

DESTDIR=..
FOODIR=foo-contents
BARDIR=bar-contents

all: $(DESTDIR)/fooprovider.jar $(DESTDIR)/barprovider.jar

FOOSERVICES = \
        java.text.spi.BreakIteratorProvider \
        java.text.spi.CollatorProvider \
        java.text.spi.DateFormatProvider \
	java.text.spi.DateFormatSymbolsProvider \
	java.text.spi.DecimalFormatSymbolsProvider \
	java.text.spi.NumberFormatProvider 

BARSERVICES = \
	java.util.spi.CurrencyNameProvider \
	java.util.spi.TimeZoneNameProvider \
22 23
	java.util.spi.LocaleNameProvider \
	java.util.spi.CalendarDataProvider
D
duke 已提交
24 25 26 27 28 29 30 31

FOOFILES_JAVA = \
    BreakIteratorProviderImpl.java \
    CollatorProviderImpl.java \
    DateFormatProviderImpl.java \
    DateFormatSymbolsProviderImpl.java \
    DecimalFormatSymbolsProviderImpl.java \
    NumberFormatProviderImpl.java \
32 33
    FooDateFormat.java \
    FooNumberFormat.java \
D
duke 已提交
34 35 36 37
    Utils.java

BARFILES_JAVA = \
    CurrencyNameProviderImpl.java \
38
    CurrencyNameProviderImpl2.java \
D
duke 已提交
39 40
    TimeZoneNameProviderImpl.java \
    LocaleNameProviderImpl.java \
41
    CalendarDataProviderImpl.java \
D
duke 已提交
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
    Utils.java

BARFILES_PROPERTIES = \
    LocaleNames.properties \
    LocaleNames_ja.properties \
    LocaleNames_ja_JP_osaka.properties \
    LocaleNames_ja_JP_kyoto.properties \
    LocaleNames_xx.properties

$(DESTDIR)/fooprovider.jar: $(FOOSERVICES) $(FOOFILES_JAVA)
	rm -rf $(FOODIR)
	mkdir -p $(FOODIR)
	mkdir -p $(FOODIR)/META-INF
	mkdir -p $(FOODIR)/META-INF/services
	$(BINDIR)/javac -d $(FOODIR) $(FOOFILES_JAVA)
	cp $(FOOSERVICES) $(FOODIR)/META-INF/services
	rm -f $(DESTDIR)/fooprovider.jar
	$(BINDIR)/jar  cvf $(DESTDIR)/fooprovider.jar -C $(FOODIR) .

$(DESTDIR)/barprovider.jar: $(BARSERVICES) $(BARFILES_JAVA) $(BARFILES_PROPERTIES)
	rm -rf $(BARDIR)
	mkdir -p $(BARDIR)
	mkdir -p $(BARDIR)/META-INF
	mkdir -p $(BARDIR)/META-INF/services
	$(BINDIR)/javac -d $(BARDIR) $(BARFILES_JAVA)
	cp $(BARSERVICES) $(BARDIR)/META-INF/services
	cp $(BARFILES_PROPERTIES) $(BARDIR)/com/bar
	rm -f $(DESTDIR)/barprovider.jar
	$(BINDIR)/jar  cvf $(DESTDIR)/barprovider.jar -C $(BARDIR) .