1 |
w |
1.1 |
EXCLUDED_FILES = \
|
2 |
|
|
*.BAK *~ */*.BAK */*~ */*/*.BAK */*/*~ */*/*/*.BAK */*/*/*~ \
|
3 |
|
|
CVS/ CVS/* */CVS/ */CVS/* */*/CVS/ */*/CVS/* */*/*/CVS/ */*/*/CVS/* \
|
4 |
wakaba |
1.4 |
CVS/.* */CVS/.* */*/CVS/.* */*/*/CVS/.* */*/*/*/CVS/.* \
|
5 |
|
|
*/*/*/*/*/CVS/.* \
|
6 |
|
|
ChangeLog Makefile \
|
7 |
|
|
.cvsignore */.cvsignore */*/.cvsignore */*/*/.cvsignore \
|
8 |
|
|
*/*/*/*/.cvsignore */*/*/*/*/.cvsignore \
|
9 |
|
|
*.src *.in \
|
10 |
|
|
*.jarsrc/ *.jarsrc/* *.jarsrc/*/ *.jarsrc/*/* *.jarsrc/*/*/ \
|
11 |
|
|
*.jarsrc/*/*/* *.jarsrc/*/*/*/ *.jarsrc/*/*/*/* *.jarsrc/*/*/*/*/ \
|
12 |
|
|
*.jarsrc/*/*/*/*/* *.jarsrc/*/*/*/*/*/ *.jarsrc/*/*/*/*/*/* \
|
13 |
wakaba |
1.5 |
release/ release/* release/.* \
|
14 |
w |
1.1 |
*.xpi
|
15 |
|
|
REPPL_DIR = ../tool/
|
16 |
|
|
REPPL_SRC = ./package-info.src
|
17 |
|
|
REPPL_SCRIPT = $(REPPL_DIR)replace.pl
|
18 |
|
|
REPPL = perl $(REPPL_SCRIPT) $(REPPL_SRC)
|
19 |
|
|
|
20 |
wakaba |
1.5 |
MKDIR = mkdir
|
21 |
|
|
|
22 |
|
|
GENERATED_FILES = ./*.xpi ./*.jar ./chrome/*.jar install.js install-res.en.inf \
|
23 |
|
|
install.rdf update.rdf
|
24 |
w |
1.1 |
ORIGINAL_PACKAGE_BASENAME = livehttpheaders
|
25 |
|
|
PACKAGE_BASENAME = $(ORIGINAL_PACKAGE_BASENAME)-ja
|
26 |
|
|
|
27 |
wakaba |
1.5 |
all: update.rdf $(PACKAGE_BASENAME).xpi
|
28 |
wakaba |
1.6 |
@echo ""
|
29 |
|
|
@echo "Update release/$(PACKAGE_BASENAME)-(version).xpi, "
|
30 |
|
|
@echo "release/$(PACKAGE_BASENAME).xpi and release/update.rdf."
|
31 |
w |
1.1 |
|
32 |
|
|
dummy:
|
33 |
|
|
|
34 |
wakaba |
1.5 |
chrome:
|
35 |
|
|
$(MKDIR) chrome
|
36 |
|
|
|
37 |
|
|
%.jar: %.jarsrc chrome dummy
|
38 |
w |
1.1 |
cd $< && zip -r $@ * -x $(EXCLUDED_FILES)
|
39 |
wakaba |
1.5 |
mv $</$@ chrome/$@
|
40 |
w |
1.1 |
|
41 |
|
|
%.jarsrc: dummy
|
42 |
|
|
cd $@/locale/ja-JP/$(ORIGINAL_PACKAGE_BASENAME) && make all
|
43 |
|
|
|
44 |
wakaba |
1.5 |
%.xpi: %.jar install.js install-res.en.inf install.rdf
|
45 |
w |
1.1 |
-rm $@
|
46 |
|
|
zip -r $@ * -x $(EXCLUDED_FILES)
|
47 |
|
|
|
48 |
wakaba |
1.5 |
install.js: $(REPPL_DIR)install-2004.js.in $(REPPL_SRC) $(REPPL_SCRIPT)
|
49 |
w |
1.1 |
$(REPPL) --output-type=js --input=$< > $@
|
50 |
|
|
|
51 |
|
|
install-res.en.inf: $(REPPL_DIR)install-res.en.inf.in
|
52 |
|
|
$(REPPL) --output-type=moz-properties --input=$< > $@
|
53 |
wakaba |
1.5 |
|
54 |
|
|
install.rdf: install.rdf.in $(REPPL_SRC) $(REPPL_SCRIPT)
|
55 |
|
|
$(REPPL) --output-type=xml --input=$< > $@
|
56 |
|
|
|
57 |
|
|
update.rdf: update.rdf.in $(REPPL_SRC) $(REPPL_SCRIPT)
|
58 |
|
|
$(REPPL) --output-type=xml --input=$< > $@
|
59 |
w |
1.1 |
|
60 |
|
|
clean:
|
61 |
|
|
-rm -v $(GENERATED_FILES)
|
62 |
|
|
-rm -v ./*~ ./.*~ ./*.BAK ./.*.BAK
|
63 |
wakaba |
1.3 |
cd $(PACKAGE_BASENAME).jarsrc/locale/ja-JP/$(ORIGINAL_PACKAGE_BASENAME) && make clean
|
64 |
|
|
|