Mercurial > bins
comparison Makefile @ 0:a84c32f131df 1.1.29
Import vendor version
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Wed, 15 Oct 2008 23:28:56 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a84c32f131df |
---|---|
1 | |
2 # version of the package | |
3 VERSION=1.1.29 | |
4 # name of the tarball | |
5 TARBALL = bins-$(VERSION).tar | |
6 # files to put in the tarball | |
7 DIST = bins bins_edit bins-edit-gui bins-edit-gui.glade \ | |
8 install.sh binsrc tools/*_prefix tools/bins_cleanupgallery \ | |
9 tools/anti_bins tools/bins_txt2xml tools/bins_addtext \ | |
10 LICENSE README README.gui RELEASE.gui TODO ChangeLog CREDITS \ | |
11 doc/*.html doc/*.sgml doc/album.xml \ | |
12 doc/bins.1 doc/bins_edit.1 doc/bins-edit-gui.1 \ | |
13 doc/bins_man.html doc/bins_edit_man.html doc/bins-edit-gui_man.html \ | |
14 templates*/*.html templates*/*.js templates*/*.txt \ | |
15 templates*/static/*.* \ | |
16 bash_completion \ | |
17 intl/*.po \ | |
18 intl/generate_mo.sh \ | |
19 intl/fr.mo intl/pl.mo intl/de.mo intl/it.mo intl/ru.mo intl/es.mo \ | |
20 intl/zh_TW.mo intl/nl.mo intl/ja.mo intl/eo.mo intl/fi.mo intl/hu.mo \ | |
21 intl/ca.mo intl/gui-fr.mo | |
22 | |
23 # name of the dir in the tarball | |
24 DIR-DIST = bins-$(VERSION) | |
25 | |
26 # files to publish on the website | |
27 PUBLISHWWW = $(wildcard doc/*.html) | |
28 #PUBLISH = $(TARBALL).gz $(TARBALL).bz2 ChangeLog doc/index_fr.html doc/index.html | |
29 | |
30 # Files to put on donwload area | |
31 PUBLISHFILE = $(TARBALL).gz $(TARBALL).gz.sig $(TARBALL).bz2 $(TARBALL).bz2.sig ChangeLog | |
32 | |
33 # where to publish webfiles for plain website | |
34 PUBLISH-DEST = $(HOME)/public_html/perso/BINS | |
35 | |
36 # where to publish webfiles for plain gna | |
37 PUBLISHGNA-DEST = $(HOME)/src/gna/web/bins | |
38 | |
39 # where to publish download files | |
40 PUBLISHFILE-DEST = $(HOME)/src/gna/bins-download | |
41 | |
42 | |
43 PROC=SGML_CATALOG_FILES=/etc/sgml/catalog xsltproc --catalogs | |
44 STYLEDIR=www/xsl | |
45 | |
46 # End of configuration | |
47 ######################################################################## | |
48 | |
49 # File to publish on plain web site (not gna) | |
50 PUBLISH = $(PUBLISHFILE) $(PUBLISHWWW) | |
51 | |
52 PUBLISH-TMP = $(PUBLISH:doc/%=%) | |
53 PUBLISH-TARGET = $(PUBLISH-TMP:%=$(PUBLISH-DEST)/%) | |
54 | |
55 PUBLISHGNA-TMP = $(PUBLISHWWW:doc/%=%) | |
56 PUBLISHGNA-TARGET = $(PUBLISHGNA:%=$(PUBLISHGNA-DEST)/%) | |
57 | |
58 PUBLISHFILE-TARGET = $(PUBLISHFILE:%=$(PUBLISHFILE-DEST)/%) | |
59 | |
60 .PHONY: all install tar publish filepublish wwwpublish upload test album demo famille clean cvs arch website | |
61 | |
62 all: | |
63 @echo "see README file to install bins" | |
64 @echo "publish upload clean" | |
65 | |
66 install: .install | |
67 | |
68 .install: $(TARBALL).gz | |
69 rm -Rf /tmp/bins* | |
70 tar -C /tmp -xzvf $(TARBALL).gz | |
71 sudo mount -o rw,remount /usr | |
72 yes|sudo sh /tmp/$(DIR-DIST)/install.sh | |
73 sudo mount -o ro,remount /usr || true | |
74 touch .install | |
75 | |
76 tar: $(TARBALL).gz | |
77 | |
78 #sudo cp /tmp/$(DIR-DIST)/intl/fr.mo /usr/local/share/locale/fr/LC_MESSAGES/bins.mo | |
79 | |
80 publish: filepublish wwwpublish gnapublish | |
81 | |
82 filepublish: $(PUBLISHFILE-TARGET) | |
83 | |
84 gnapublish: $(PUBLISHGNA-TARGET) www/xml/depends.tabular | |
85 cd www/xml && make publishgna | |
86 | |
87 wwwpublish: $(PUBLISH-TARGET) www/xml/depends.tabular | |
88 cd www/xml && make publish | |
89 | |
90 website: www/xml/depends.tabular | |
91 cd www/xml && make all | |
92 | |
93 www/xml/depends.tabular: | |
94 touch www/xml/depends.tabular | |
95 | |
96 release: upload repo fileupload gnaupload | |
97 | |
98 upload: publish | |
99 @if [ `hostname` != "ketama" ]; then\ | |
100 cp -afuv ~/public_html/perso/BINS/* ~/kashmir/public_html/perso/BINS ;\ | |
101 ssh kashmir 'PATH=$$PATH:~/bin update_www free' ;\ | |
102 ssh kashmir 'PATH=$$PATH:~/bin update_www libertysurf' ;\ | |
103 else\ | |
104 update_www tiscali ;\ | |
105 fi | |
106 # update_www free ;\ | |
107 | |
108 gnaupload: gnapublish | |
109 cd $(PUBLISHGNA-DEST) && cvs commit | |
110 | |
111 fileupload: filepublish | |
112 cd $(PUBLISHFILE-DEST) && rsync --delete -avr --rsh="ssh" . zubro@download.gna.org:/upload/bins || true | |
113 | |
114 test: install | |
115 time bins -p ~/share/pics/test ~/public_html/test | |
116 | |
117 album: install | |
118 time nice -14 bins -p ~/share/pics/album ~/public_html/album | |
119 | |
120 demo: | |
121 rsync --stats --progress -vac -e ssh ~/public_html/album/ kashmir:public_html/album/ | |
122 # time cp -afuv ~/public_html/album/.??* ~/public_html/album/* ~/kashmir/public_html/album | |
123 # time rsync -avu ~/public_html/album/ ~/kashmir/public_html/album | |
124 | |
125 dormans: .install | |
126 time nice -14 bins -p ~/share/pics/Dormans ~/kashmir/public_html/photos/Dormans | |
127 | |
128 famille: .install | |
129 time nice -14 bins -p ~/share/pics/famille ~/kashmir/public_html/photos/famille | |
130 | |
131 repo: cvs arch | |
132 | |
133 cvs: | |
134 rsync --stats --progress -vac -e ssh /home/jerome/share/cvs/ kashmir:/var/lib/cvs | |
135 | |
136 arch: | |
137 baz archive-mirror | |
138 | |
139 backup_album: | |
140 rsync --stats --progress -vac -e ssh /home/jerome/share/pics/album/ kashmir:share/pics/album | |
141 | |
142 clean: | |
143 rm -f *~ *.old *.tar */*~ .install *.sign *.tar *.tar.bz2 *.tar.gz | |
144 | |
145 #cp Makefile $(DIR-DIST) | |
146 #cp bins $(DIR-DIST)/bins.src | |
147 $(TARBALL): $(DIST) Makefile | |
148 make website | |
149 rm -Rf bins-$(VERSION) || true | |
150 mkdir $(DIR-DIST) | |
151 cp --parents $^ $(DIR-DIST) | |
152 cp www/xml/*.html www/xml/*.xml $(DIR-DIST)/doc | |
153 $(HOME)/bin/change 1.1.29 $(VERSION) $(DIR-DIST)/* | |
154 tar \ | |
155 --exclude=*~ \ | |
156 --exclude=*.old \ | |
157 --exclude=*.bak \ | |
158 --exclude=\#* \ | |
159 -cvf $(TARBALL) bins-$(VERSION) | |
160 rm -Rf $(DIR-DIST) | |
161 | |
162 | |
163 $(PUBLISH-DEST)/%.html : doc/%.html | |
164 cp $< $@ | |
165 | |
166 $(PUBLISH-DEST)/%: % | |
167 cp $< $@ | |
168 | |
169 $(PUBLISHGNA-DEST)/%.html : doc/%.html | |
170 cp $< $@ | |
171 | |
172 $(PUBLISHGNA-DEST)/%: % | |
173 cp $< $@ | |
174 | |
175 $(PUBLISHFILE-DEST)/%: % | |
176 cp $< $@ | |
177 | |
178 %.sig: % | |
179 gpg --yes --use-agent --detach-sign $< | |
180 | |
181 %_man.html: %.sgml | |
182 docbook2html -o /tmp/$(notdir $@) $< | |
183 mv /tmp/$(notdir $@)/index.html $@ | |
184 rmdir /tmp/$(notdir $@) | |
185 | |
186 %.1: %.sgml | |
187 docbook-to-man $< >$@ | |
188 | |
189 %.mo: %.po bins | |
190 ./intl/generate_mo.sh $< | |
191 # msgfmt -o $@ $< | |
192 | |
193 %.gz: % | |
194 gzip -c --best $< >$@ | |
195 | |
196 %.bz2: % | |
197 bzip2 -c $< >$@ | |
198 |