equal
deleted
inserted
replaced
157 STAT_RST_FILE := dist/misc/STAT.rst |
157 STAT_RST_FILE := dist/misc/STAT.rst |
158 STAT_HTML_FILE := dist/www/STAT.html |
158 STAT_HTML_FILE := dist/www/STAT.html |
159 |
159 |
160 HTML_FILES := $(RST_HTML_FILES) $(INDEX_HTML_FILE) $(STAT_HTML_FILE) |
160 HTML_FILES := $(RST_HTML_FILES) $(INDEX_HTML_FILE) $(STAT_HTML_FILE) |
161 |
161 |
162 LOGO_NAME := logo |
162 LOGO_FILE := www/logo.svg |
163 LOGO_SVG := $(LOGO_NAME).svg |
|
164 LOGO_DIM := 32x32 48x48 64x64 |
163 LOGO_DIM := 32x32 48x48 64x64 |
165 LOGO_PNG_FILES := $(patsubst %,$(LOGO_NAME)-%.png,$(LOGO_DIM)) |
164 LOGO_PNG_FILES := $(patsubst %,dist/misc/logo-%.png,$(LOGO_DIM)) |
|
165 FAVICON := dist/www/favicon.ico |
166 |
166 |
167 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip |
167 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip |
168 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip |
168 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip |
169 |
169 |
170 ################################################################ |
170 ################################################################ |
231 .PHONY: deploy2defun-hg |
231 .PHONY: deploy2defun-hg |
232 deploy2defun-hg: |
232 deploy2defun-hg: |
233 hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ] |
233 hg push ssh://$(DEFUN_USER)@$(DEFUN_HG_SRV)/$(DEFUN_HG_DIR) || [ $$? = 1 ] |
234 |
234 |
235 .PHONY: deploy2defun-www |
235 .PHONY: deploy2defun-www |
236 deploy2defun-www: $(HTML_FILES) |
236 deploy2defun-www: $(HTML_FILES) $(FAVICON) |
237 ( \ |
237 ( \ |
238 echo 'cd $(DEFUN_WWW_DIR)'; \ |
238 echo 'cd $(DEFUN_WWW_DIR)'; \ |
239 for f in $(HTML_FILES); do \ |
239 for f in $(HTML_FILES) $(FAVICON); do \ |
240 n=$${f##*/}; \ |
240 n=$${f##*/}; \ |
241 echo "put $$f $$n"; \ |
241 echo "put $$f $$n"; \ |
242 echo "chmod 644 $$n"; \ |
242 echo "chmod 644 $$n"; \ |
243 done; \ |
243 done; \ |
244 echo 'quit'; \ |
244 echo 'quit'; \ |
271 deploy2sf-hg: |
271 deploy2sf-hg: |
272 hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ] |
272 hg push ssh://$(SF_USER)@hg.code.sf.net/p/$(pkgname)/code || [ $$? = 1 ] |
273 |
273 |
274 # Will be accessed via http://$(pkgname).sourceforge.net |
274 # Will be accessed via http://$(pkgname).sourceforge.net |
275 .PHONY: deploy2sf-www |
275 .PHONY: deploy2sf-www |
276 deploy2sf-www: $(HTML_FILES) |
276 deploy2sf-www: $(HTML_FILES) $(FAVICON) |
277 ( echo 'cd htdocs'; \ |
277 ( echo 'cd htdocs'; \ |
278 for f in $(HTML_FILES); do \ |
278 for f in $(HTML_FILES) $(FAVICON); do \ |
279 n=$${f##*/}; \ |
279 n=$${f##*/}; \ |
280 echo "put $$f $$n"; \ |
280 echo "put $$f $$n"; \ |
281 echo "chmod 644 $$n"; \ |
281 echo "chmod 644 $$n"; \ |
282 done; \ |
282 done; \ |
283 echo 'quit'; \ |
283 echo 'quit'; \ |
608 mkdir -p $@ |
608 mkdir -p $@ |
609 |
609 |
610 ################################################################ |
610 ################################################################ |
611 # Misc targets. |
611 # Misc targets. |
612 |
612 |
|
613 .PHONY: favicon |
|
614 favicon: $(FAVICON) |
|
615 |
|
616 $(FAVICON): $(LOGO_FILE) $(MAKEFILE_LIST) | $(dir $(FAVICON)) |
|
617 convert +antialias $< -resize 16x16 $@ |
|
618 |
613 .PHONY: logo |
619 .PHONY: logo |
614 logo: logo-png |
620 logo: logo-png |
615 |
621 |
616 .PHONY: logo-png |
622 .PHONY: logo-png |
617 logo-png: $(LOGO_PNG_FILES) |
623 logo-png: $(LOGO_PNG_FILES) |
618 |
624 |
619 # Require: |
625 # Require: |
620 # $ sudo apt-get install imagemagick librsvg2-bin |
626 # $ sudo apt-get install imagemagick librsvg2-bin |
621 $(LOGO_PNG_FILES): $(LOGO_NAME)-%.png: $(LOGO_SVG) |
627 $(LOGO_PNG_FILES): dist/misc/logo-%.png: $(LOGO_FILE) | dist/misc/ |
622 convert +antialias -background transparent $< -resize $* $@ |
628 convert +antialias -background transparent $< -resize $* $@ |
623 |
629 |
624 .PHONY: voa |
630 .PHONY: voa |
625 voa: dist/pdf/voa-special.pdf |
631 voa: dist/pdf/voa-special.pdf |
626 |
632 |