Makefile 1.9 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 22 23 24 25 26 27 28 29 30
#
#
#

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 \
	java.util.spi.LocaleNameProvider 

FOOFILES_JAVA = \
    BreakIteratorProviderImpl.java \
    CollatorProviderImpl.java \
    DateFormatProviderImpl.java \
    DateFormatSymbolsProviderImpl.java \
    DecimalFormatSymbolsProviderImpl.java \
    NumberFormatProviderImpl.java \
31 32
    FooDateFormat.java \
    FooNumberFormat.java \
D
duke 已提交
33 34 35 36 37 38 39 40 41 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
    Utils.java

BARFILES_JAVA = \
    CurrencyNameProviderImpl.java \
    TimeZoneNameProviderImpl.java \
    LocaleNameProviderImpl.java \
    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) .