2
|
1 |
#
|
|
2 |
#
|
|
3 |
#
|
|
4 |
|
|
5 |
DESTDIR=..
|
|
6 |
FOODIR=foo-contents
|
|
7 |
BARDIR=bar-contents
|
|
8 |
|
|
9 |
all: $(DESTDIR)/fooprovider.jar $(DESTDIR)/barprovider.jar
|
|
10 |
|
|
11 |
FOOSERVICES = \
|
|
12 |
java.text.spi.BreakIteratorProvider \
|
|
13 |
java.text.spi.CollatorProvider \
|
|
14 |
java.text.spi.DateFormatProvider \
|
|
15 |
java.text.spi.DateFormatSymbolsProvider \
|
|
16 |
java.text.spi.DecimalFormatSymbolsProvider \
|
|
17 |
java.text.spi.NumberFormatProvider
|
|
18 |
|
|
19 |
BARSERVICES = \
|
|
20 |
java.util.spi.CurrencyNameProvider \
|
|
21 |
java.util.spi.TimeZoneNameProvider \
|
|
22 |
java.util.spi.LocaleNameProvider
|
|
23 |
|
|
24 |
FOOFILES_JAVA = \
|
|
25 |
BreakIteratorProviderImpl.java \
|
|
26 |
CollatorProviderImpl.java \
|
|
27 |
DateFormatProviderImpl.java \
|
|
28 |
DateFormatSymbolsProviderImpl.java \
|
|
29 |
DecimalFormatSymbolsProviderImpl.java \
|
|
30 |
NumberFormatProviderImpl.java \
|
|
31 |
Utils.java
|
|
32 |
|
|
33 |
BARFILES_JAVA = \
|
|
34 |
CurrencyNameProviderImpl.java \
|
|
35 |
TimeZoneNameProviderImpl.java \
|
|
36 |
LocaleNameProviderImpl.java \
|
|
37 |
Utils.java
|
|
38 |
|
|
39 |
BARFILES_PROPERTIES = \
|
|
40 |
LocaleNames.properties \
|
|
41 |
LocaleNames_ja.properties \
|
|
42 |
LocaleNames_ja_JP_osaka.properties \
|
|
43 |
LocaleNames_ja_JP_kyoto.properties \
|
|
44 |
LocaleNames_xx.properties
|
|
45 |
|
|
46 |
$(DESTDIR)/fooprovider.jar: $(FOOSERVICES) $(FOOFILES_JAVA)
|
|
47 |
rm -rf $(FOODIR)
|
|
48 |
mkdir -p $(FOODIR)
|
|
49 |
mkdir -p $(FOODIR)/META-INF
|
|
50 |
mkdir -p $(FOODIR)/META-INF/services
|
|
51 |
$(BINDIR)/javac -d $(FOODIR) $(FOOFILES_JAVA)
|
|
52 |
cp $(FOOSERVICES) $(FOODIR)/META-INF/services
|
|
53 |
rm -f $(DESTDIR)/fooprovider.jar
|
|
54 |
$(BINDIR)/jar cvf $(DESTDIR)/fooprovider.jar -C $(FOODIR) .
|
|
55 |
|
|
56 |
$(DESTDIR)/barprovider.jar: $(BARSERVICES) $(BARFILES_JAVA) $(BARFILES_PROPERTIES)
|
|
57 |
rm -rf $(BARDIR)
|
|
58 |
mkdir -p $(BARDIR)
|
|
59 |
mkdir -p $(BARDIR)/META-INF
|
|
60 |
mkdir -p $(BARDIR)/META-INF/services
|
|
61 |
$(BINDIR)/javac -d $(BARDIR) $(BARFILES_JAVA)
|
|
62 |
cp $(BARSERVICES) $(BARDIR)/META-INF/services
|
|
63 |
cp $(BARFILES_PROPERTIES) $(BARDIR)/com/bar
|
|
64 |
rm -f $(DESTDIR)/barprovider.jar
|
|
65 |
$(BINDIR)/jar cvf $(DESTDIR)/barprovider.jar -C $(BARDIR) .
|