293 |
293 |
294 DISTREL_DICTDZ_FILES := $(patsubst %,dist/$(fullpkgname)/dictd/%,$(notdir $(DICTDZ_FILES))) |
294 DISTREL_DICTDZ_FILES := $(patsubst %,dist/$(fullpkgname)/dictd/%,$(notdir $(DICTDZ_FILES))) |
295 DISTREL_INDEX_FILES := $(patsubst %,dist/$(fullpkgname)/dictd/%,$(notdir $(INDEX_FILES))) |
295 DISTREL_INDEX_FILES := $(patsubst %,dist/$(fullpkgname)/dictd/%,$(notdir $(INDEX_FILES))) |
296 DISTREL_RST_FILES := $(patsubst %,dist/$(fullpkgname)/doc/txt/%,$(notdir $(RST_FILES))) |
296 DISTREL_RST_FILES := $(patsubst %,dist/$(fullpkgname)/doc/txt/%,$(notdir $(RST_FILES))) |
297 DISTREL_HTML_FILES := $(patsubst %,dist/$(fullpkgname)/doc/html/%,$(notdir $(RST_HTML_FILES))) |
297 DISTREL_HTML_FILES := $(patsubst %,dist/$(fullpkgname)/doc/html/%,$(notdir $(RST_HTML_FILES))) |
298 |
298 DISTREL_SRS_TAB_FILES := $(patsubst %,dist/$(fullpkgname)/srs/%,$(notdir $(SRS_TAB_FILES))) |
299 dist/$(fullpkgname).tar.gz: $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_RST_FILES) $(DISTREL_HTML_FILES) $(BUILD_SCRIPTS) |
299 |
|
300 dist/$(fullpkgname).tar.gz: $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_SRS_TAB_FILES) $(DISTREL_RST_FILES) $(DISTREL_HTML_FILES) $(BUILD_SCRIPTS) |
300 rm -rf $@ |
301 rm -rf $@ |
301 tar zcf $@ -C dist/ $(fullpkgname) |
302 tar zcf $@ -C dist/ $(fullpkgname) |
302 |
303 |
303 dist/$(fullpkgname).zip: $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_RST_FILES) $(DISTREL_HTML_FILES) $(BUILD_SCRIPTS) |
304 dist/$(fullpkgname).zip: $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES) $(DISTREL_RST_FILES) $(DISTREL_HTML_FILES) $(BUILD_SCRIPTS) |
304 rm -rf $@ |
305 rm -rf $@ |
305 cd $(dir $@) && zip -r $(notdir $@) $(fullpkgname) |
306 cd $(dir $@) && zip -r $(notdir $@) $(fullpkgname) |
306 |
307 |
307 $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES): dist/$(fullpkgname)/dictd/%: dist/dictd/% | dist/$(fullpkgname)/dictd/ |
308 $(DISTREL_DICTDZ_FILES) $(DISTREL_INDEX_FILES): dist/$(fullpkgname)/dictd/%: dist/dictd/% | dist/$(fullpkgname)/dictd/ |
308 cp $< $@ |
309 cp $< $@ |
309 |
310 |
|
311 $(DISTREL_SRS_TAB_FILES): dist/$(fullpkgname)/srs/%: dist/srs/% | dist/$(fullpkgname)/srs/ |
|
312 cp $< $@ |
|
313 |
310 $(DISTREL_RST_FILES): dist/$(fullpkgname)/doc/txt/%: www/% | dist/$(fullpkgname)/doc/txt/ |
314 $(DISTREL_RST_FILES): dist/$(fullpkgname)/doc/txt/%: www/% | dist/$(fullpkgname)/doc/txt/ |
311 cp $< $@ |
315 cp $< $@ |
312 |
316 |
313 $(DISTREL_HTML_FILES): dist/$(fullpkgname)/doc/html/%: dist/www/% | dist/$(fullpkgname)/doc/html/ |
317 $(DISTREL_HTML_FILES): dist/$(fullpkgname)/doc/html/%: dist/www/% | dist/$(fullpkgname)/doc/html/ |
314 cp $< $@ |
318 cp $< $@ |
315 |
319 |
316 $(patsubst %,dist/$(fullpkgname)/%, dictd/ doc/txt/ doc/html/): |
320 $(patsubst %,dist/$(fullpkgname)/%, dictd/ srs/ doc/txt/ doc/html/): |
317 mkdir -p $@ |
321 mkdir -p $@ |
318 |
322 |
319 .PHONY: dist-src |
323 .PHONY: dist-src |
320 dist-src: $(DISTSRC_TARBALLS) |
324 dist-src: $(DISTSRC_TARBALLS) |
321 |
325 |