equal
deleted
inserted
replaced
173 WWW_HTML_FILES := $(RST_HTML_FILES) $(INDEX_HTML_FILE) $(STAT_HTML_FILE) |
173 WWW_HTML_FILES := $(RST_HTML_FILES) $(INDEX_HTML_FILE) $(STAT_HTML_FILE) |
174 |
174 |
175 LOGO_FILE := www/logo.svg |
175 LOGO_FILE := www/logo.svg |
176 LOGO_DIM := 32x32 48x48 64x64 |
176 LOGO_DIM := 32x32 48x48 64x64 |
177 LOGO_PNG_FILES := $(patsubst %,dist/misc/logo-%.png,$(LOGO_DIM)) |
177 LOGO_PNG_FILES := $(patsubst %,dist/misc/logo-%.png,$(LOGO_DIM)) |
178 FAVICON := dist/www/favicon.ico |
178 FAVICON := dist/www/favicon.png |
179 |
179 |
180 EL_FILES := $(wildcard contrib/*.el) |
180 EL_FILES := $(wildcard contrib/*.el) |
181 |
181 |
182 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip |
182 DISTREL_TARBALLS = dist/$(fullpkgname).tar.gz dist/$(fullpkgname).zip |
183 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip |
183 DISTSRC_TARBALLS = dist/$(fullpkgname)_src.tar.gz # dist/$(fullpkgname)_src.zip |
209 done |
209 done |
210 rm -f $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) $(patsubst %.el,$(elispdir)/%.elc,$(notdir $(EL_FILES))) |
210 rm -f $(patsubst %,$(elispdir)/%,$(notdir $(EL_FILES))) $(patsubst %.el,$(elispdir)/%.elc,$(notdir $(EL_FILES))) |
211 |
211 |
212 ################################################################ |
212 ################################################################ |
213 # Deploy/release targets. |
213 # Deploy/release targets. |
|
214 |
|
215 SF_USER ?= gavenkoa |
|
216 |
|
217 # Release require Anki Python modules, dictd utilities and graphicsmagick (for icon): |
|
218 # $ sudo apt install anki dictfmt dictzip graphicsmagick |
|
219 |
|
220 # First time you deploy to SourceForge (sf) you need manually login to: |
|
221 # $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net |
|
222 # $ hg push ssh://$(SF_USER)@hg.code.sf.net/p/gadict/cod |
|
223 # as it asks for accepting server public key. |
214 |
224 |
215 .PHONY: deploy |
225 .PHONY: deploy |
216 deploy: deploy2defun deploy2sf |
226 deploy: deploy2defun deploy2sf |
217 |
227 |
218 .PHONY: deploy-src deploy-hg |
228 .PHONY: deploy-src deploy-hg |
282 echo "put $$f $$n"; \ |
292 echo "put $$f $$n"; \ |
283 echo "chmod 644 $$n"; \ |
293 echo "chmod 644 $$n"; \ |
284 done; \ |
294 done; \ |
285 echo 'quit'; \ |
295 echo 'quit'; \ |
286 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV) |
296 ) | sftp -b - $(DEFUN_USER)@$(DEFUN_WWW_SRV) |
287 |
|
288 SF_USER ?= gavenkoa |
|
289 |
|
290 # First time you deploy to SourceForge (sf) you need manually login to: |
|
291 # $ sftp $(SF_USER),$(pkgname)@web.sourceforge.net |
|
292 # as it may require interactive input for accepting server public key. |
|
293 # Next time any action fully automated. |
|
294 |
297 |
295 .PHONY: deploy2sf-full |
298 .PHONY: deploy2sf-full |
296 deploy2sf-full: deploy2sf deploy2sf-voa |
299 deploy2sf-full: deploy2sf deploy2sf-voa |
297 |
300 |
298 .PHONY: deploy2sf |
301 .PHONY: deploy2sf |
623 |
626 |
624 dist/dictd/%.dict.dz: dist/dictd/%.dict |
627 dist/dictd/%.dict.dz: dist/dictd/%.dict |
625 dictzip -c $< >$@ |
628 dictzip -c $< >$@ |
626 |
629 |
627 dist/dictd/%.png: %.xpm | dist/dictd/ |
630 dist/dictd/%.png: %.xpm | dist/dictd/ |
628 convert $< $@ |
631 gm convert $< $@ |
629 |
632 |
630 GADICT_SUFFIXES := en-ru+uk en-ru en-uk voa |
633 GADICT_SUFFIXES := en-ru+uk en-ru en-uk voa |
631 .SECONDARY: $(patsubst %,dist/dictd/gadict_%.c5.name,$(GADICT_SUFFIXES)) |
634 .SECONDARY: $(patsubst %,dist/dictd/gadict_%.c5.name,$(GADICT_SUFFIXES)) |
632 .SECONDARY: $(patsubst %,dist/dictd/gadict_%.c5.url,$(GADICT_SUFFIXES)) |
635 .SECONDARY: $(patsubst %,dist/dictd/gadict_%.c5.url,$(GADICT_SUFFIXES)) |
633 |
636 |
788 |
791 |
789 .PHONY: favicon |
792 .PHONY: favicon |
790 favicon: $(FAVICON) |
793 favicon: $(FAVICON) |
791 |
794 |
792 $(FAVICON): $(LOGO_FILE) $(MAKEFILE_LIST) | $(dir $(FAVICON)) |
795 $(FAVICON): $(LOGO_FILE) $(MAKEFILE_LIST) | $(dir $(FAVICON)) |
793 convert +antialias $< -resize 16x16 $@ |
796 gm convert +antialias $< -resize 16x16 $@ |
794 |
797 |
795 .PHONY: logo |
798 .PHONY: logo |
796 logo: logo-png |
799 logo: logo-png |
797 |
800 |
798 .PHONY: logo-png |
801 .PHONY: logo-png |