| 1 |
w |
1.1 |
EXCLUDED_FILES = \
|
| 2 |
|
|
*.BAK *~ */*.BAK */*~ */*/*.BAK */*/*~ */*/*/*.BAK */*/*/*~ \
|
| 3 |
|
|
CVS/ CVS/* */CVS/ */CVS/* */*/CVS/ */*/CVS/* */*/*/CVS/ */*/*/CVS/* \
|
| 4 |
|
|
ChangeLog Makefile .cvsignore *.src *.in \
|
| 5 |
|
|
*.jarsrc/ *.jarsrc/* *.jarsrc/*/ *.jarsrc/*/* *.jarsrc/*/*/ *.jarsrc/*/*/* \
|
| 6 |
|
|
*.jarsrc/*/*/*/ *.jarsrc/*/*/*/* *.jarsrc/*/*/*/*/ *.jarsrc/*/*/*/*/* \
|
| 7 |
|
|
*.jarsrc/*/*/*/*/*/ *.jarsrc/*/*/*/*/*/* \
|
| 8 |
|
|
*.xpi
|
| 9 |
|
|
REPPL_DIR = ../tool/
|
| 10 |
|
|
REPPL_SRC = ./package-info.src
|
| 11 |
|
|
REPPL_SCRIPT = $(REPPL_DIR)replace.pl
|
| 12 |
|
|
REPPL = perl $(REPPL_SCRIPT) $(REPPL_SRC)
|
| 13 |
|
|
|
| 14 |
|
|
GENERATED_FILES = ./*.xpi ./*.jar install.js install-res.en.inf
|
| 15 |
|
|
ORIGINAL_PACKAGE_BASENAME = livehttpheaders
|
| 16 |
|
|
PACKAGE_BASENAME = $(ORIGINAL_PACKAGE_BASENAME)-ja
|
| 17 |
|
|
|
| 18 |
|
|
all: $(PACKAGE_BASENAME).xpi
|
| 19 |
|
|
|
| 20 |
|
|
dummy:
|
| 21 |
|
|
|
| 22 |
|
|
%.jar: %.jarsrc dummy
|
| 23 |
|
|
cd $< && zip -r $@ * -x $(EXCLUDED_FILES)
|
| 24 |
|
|
mv $</$@ $@
|
| 25 |
|
|
|
| 26 |
|
|
%.jarsrc: dummy
|
| 27 |
|
|
cd $@/locale/ja-JP/$(ORIGINAL_PACKAGE_BASENAME) && make all
|
| 28 |
|
|
|
| 29 |
|
|
%.xpi: %.jar install.js install-res.en.inf
|
| 30 |
|
|
-rm $@
|
| 31 |
|
|
zip -r $@ * -x $(EXCLUDED_FILES)
|
| 32 |
|
|
|
| 33 |
|
|
install.js: $(REPPL_DIR)install.js.in $(REPPL_SRC) $(REPPL_SCRIPT)
|
| 34 |
|
|
$(REPPL) --output-type=js --input=$< > $@
|
| 35 |
|
|
|
| 36 |
|
|
install-res.en.inf: $(REPPL_DIR)install-res.en.inf.in
|
| 37 |
|
|
$(REPPL) --output-type=moz-properties --input=$< > $@
|
| 38 |
|
|
|
| 39 |
|
|
clean:
|
| 40 |
|
|
-rm -v $(GENERATED_FILES)
|
| 41 |
|
|
-rm -v ./*~ ./.*~ ./*.BAK ./.*.BAK
|