]> git.phdru.name Git - bookmarks_db.git/blobdiff - Makefile
TODO: Configuration file
[bookmarks_db.git] / Makefile
index a15748413123441f4c8a36f9c232eb1e62ab37a0..5354e31b16dc2070b9534082e713dc3e5b9abd44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,34 @@
+#
+# This file is a part of Bookmarks database and Internet robot.
+#
+# __author__ = "Oleg Broytman <phd@phdru.name>"
+# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
+# __license__ = "GNU GPL"
+#
 
+VERSION=4.6.0
 
-VERSION=3.3.2
-EXAMPLE_SHELL=ns-unescape mz-unescape bkmk2db koi2win.db \
-       bkmk-koi bkmk-win bkmk-chk bkmk-set bkmk-sort hotexplode.pl \
-       check_title.py set-real_title.py set-title-list.py.py \
-       bkmk-add.py bkmk-add bkmk-rsync
-
+EXAMPLE_SHELL=bkmk-add bkmk-add.py bkmk-chk bkmk-publish bkmk-rsync \
+   bkmk-sort bkmk2db check_title.py check_url.py hotexplode.pl \
+   mk-distr set-real_title.py set-title-list set-title-list.py
 
 .PHONY: all
 all:
        @echo "Nothing to be done for \`all'"
 
+.PHONY: distr
+distr:
+       ./mk-distr
 
-distr: clean examples_distr
-       cd .. && tar cf - bookmarks_db | gzip -9 > bookmarks_db-$(VERSION)-`date +'%Y%m%d'`.tar.gz
-
+.PHONY: fulldistr
+fulldistr: clean examples_distr
+       cd .. && tar cf - bookmarks_db | bzip2 -9 > bookmarks_db-$(VERSION).tar.bz2
 
 .PHONY: examples_distr
 examples_distr:
-       tar cf - $(EXAMPLE_SHELL) | gzip -9 > ../bookmarks_sh-$(VERSION)-`date +'%Y%m%d'`.tar.gz
+       tar cf - $(EXAMPLE_SHELL) | bzip2 -9 > ../bookmarks_sh-$(VERSION).tar.bz2
        rm $(EXAMPLE_SHELL)
 
-
 .PHONY: clean
 clean:
-       find . -name '*.py[co]' -print | xargs rm -f
+       find . -depth -type f -name '*.py[co]' -delete