/[suikacvs]/www/mozilla/livehttpheaders/Makefile
Suika

Contents of /www/mozilla/livehttpheaders/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sat Jul 10 07:28:35 2004 UTC (20 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: release-1-4
Changes since 1.4: +19 -7 lines
Sync with 0.9

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 w 1.1
29     dummy:
30    
31 wakaba 1.5 chrome:
32     $(MKDIR) chrome
33    
34     %.jar: %.jarsrc chrome dummy
35 w 1.1 cd $< && zip -r $@ * -x $(EXCLUDED_FILES)
36 wakaba 1.5 mv $</$@ chrome/$@
37 w 1.1
38     %.jarsrc: dummy
39     cd $@/locale/ja-JP/$(ORIGINAL_PACKAGE_BASENAME) && make all
40    
41 wakaba 1.5 %.xpi: %.jar install.js install-res.en.inf install.rdf
42 w 1.1 -rm $@
43     zip -r $@ * -x $(EXCLUDED_FILES)
44    
45 wakaba 1.5 install.js: $(REPPL_DIR)install-2004.js.in $(REPPL_SRC) $(REPPL_SCRIPT)
46 w 1.1 $(REPPL) --output-type=js --input=$< > $@
47    
48     install-res.en.inf: $(REPPL_DIR)install-res.en.inf.in
49     $(REPPL) --output-type=moz-properties --input=$< > $@
50 wakaba 1.5
51     install.rdf: install.rdf.in $(REPPL_SRC) $(REPPL_SCRIPT)
52     $(REPPL) --output-type=xml --input=$< > $@
53    
54     update.rdf: update.rdf.in $(REPPL_SRC) $(REPPL_SCRIPT)
55     $(REPPL) --output-type=xml --input=$< > $@
56 w 1.1
57     clean:
58     -rm -v $(GENERATED_FILES)
59     -rm -v ./*~ ./.*~ ./*.BAK ./.*.BAK
60 wakaba 1.3 cd $(PACKAGE_BASENAME).jarsrc/locale/ja-JP/$(ORIGINAL_PACKAGE_BASENAME) && make clean
61    

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24