equal
deleted
inserted
replaced
109 INDEX_FILES := $(C5_FILES:.dict-c5=.index) |
109 INDEX_FILES := $(C5_FILES:.dict-c5=.index) |
110 |
110 |
111 RST_FILES := $(wildcard *.rst) |
111 RST_FILES := $(wildcard *.rst) |
112 HTML_FILES := $(RST_FILES:.rst=.html) |
112 HTML_FILES := $(RST_FILES:.rst=.html) |
113 |
113 |
114 name = gadict |
114 pkgname = gadict |
115 fullpkgname = $(name)-$(vmajor).$(vminor) |
115 fullpkgname = $(pkgname)-$(vmajor).$(vminor) |
116 |
116 |
117 DIST_DIR = $(fullpkgname) |
117 DIST_DIR = $(fullpkgname) |
118 DISTSRC_DIR = $(fullpkgname)_src |
118 DISTSRC_DIR = $(fullpkgname)_src |
119 |
119 |
120 DIST_FILES = $(DICTDZ_FILES) $(INDEX_FILES) $(HTML_FILES) $(RST_FILES) VERSION |
120 DIST_FILES = $(DICTDZ_FILES) $(INDEX_FILES) $(HTML_FILES) $(RST_FILES) VERSION |
133 endif |
133 endif |
134 |
134 |
135 .PHONY: deploy |
135 .PHONY: deploy |
136 deploy: deploy2sf |
136 deploy: deploy2sf |
137 |
137 |
138 SFTP_PATH = $(SF_USER),$(name)@frs.sourceforge.net |
138 SFTP_PATH = $(SF_USER),$(pkgname)@frs.sourceforge.net |
139 |
139 |
140 # First time you deploy to SourceForge (sf) you need manually login to: |
140 # First time you deploy to SourceForge (sf) you need manually login to: |
141 # $ sftp $(SFTP_PATH) |
141 # $ sftp $(SFTP_PATH) |
142 # as it may require interactive input for accepting server public key. |
142 # as it may require interactive input for accepting server public key. |
143 # Next time any action fully automated. |
143 # Next time any action fully automated. |
144 |
144 |
145 .PHONY: deploy2sf |
145 .PHONY: deploy2sf |
146 deploy2sf: deploy2sf-doc deploy2sf-release deploy2sf-src |
146 deploy2sf: deploy2sf-doc deploy2sf-release deploy2sf-src |
147 |
147 |
148 # Will be accessed via http://$(name).sourceforge.net |
148 # Will be accessed via http://$(pkgname).sourceforge.net |
149 .PHONY: deploy2sf-doc |
149 .PHONY: deploy2sf-doc |
150 deploy2sf-doc: $(HTML_FILES) |
150 deploy2sf-doc: $(HTML_FILES) |
151 ( echo 'cd htdocs'; \ |
151 ( echo 'cd htdocs'; \ |
152 for f in $(HTML_FILES); do \ |
152 for f in $(HTML_FILES); do \ |
153 echo "put $$f"; \ |
153 echo "put $$f"; \ |
172 echo 'quit'; \ |
172 echo 'quit'; \ |
173 ) | sftp -b - $(SFTP_PATH) |
173 ) | sftp -b - $(SFTP_PATH) |
174 |
174 |
175 .PHONY: deploy2sf-src |
175 .PHONY: deploy2sf-src |
176 deploy2sf-src: |
176 deploy2sf-src: |
177 hg push ssh://gavenkoa@hg.code.sf.net/p/$(name)/code |
177 hg push ssh://gavenkoa@hg.code.sf.net/p/$(pkgname)/code |
178 |
178 |
179 ################################################################ |
179 ################################################################ |
180 # Dist targets. |
180 # Dist targets. |
181 |
181 |
182 .PHONY: dist |
182 .PHONY: dist |