# HG changeset patch # User Oleksandr Gavenko # Date 1326402062 -7200 # Node ID 35cc545ec03d38f6569f60f4ec92c62cbf3282db # Parent 4ebab09991e6b6f4cbd0cd96a6dee3946bfea121 'clean'-like targets delete artefacts after 'dist' targets. diff -r 4ebab09991e6 -r 35cc545ec03d Makefile --- a/Makefile Thu Jan 12 22:55:46 2012 +0200 +++ b/Makefile Thu Jan 12 23:01:02 2012 +0200 @@ -105,11 +105,14 @@ .PHONY: dist dist: dist-dictd dist-src +DIST_TARBALLS = $(DIST_DIR).tar.gz $(DIST_DIR).tar.bz2 +DISTSRC_TARBALLS = $(DISTSRC_DIR).tar.gz $(DISTSRC_DIR).tar.bz2 + .PHONY: dist-dictd -dist-dictd: $(DIST_DIR).tar.gz $(DIST_DIR).tar.bz2 +dist-dictd: $(DIST_TARBALLS) .PHONY: dist-src -dist-src: $(DISTSRC_DIR).tar.gz $(DISTSRC_DIR).tar.bz2 +dist-src: $(DISTSRC_TARBALLS) %.tar.gz: % tar zcf $*.tar.gz $* @@ -191,10 +194,12 @@ .PHONY: distclean distclean: clean + rm -f VERSION .PHONY: clean clean: rm -f $(DICTDZ_FILES) $(INDEX_FILES) $(HTML_FILES) + rm -rf $(DIST_DIR) $(DISTSRC_DIR) $(DIST_TARBALLS) $(DISTSRC_TARBALLS) ################################################################ # Helper target.