clean vendor/git2changelog
[freedombox-privoxy:freedombox-privoxy.git] / Makefile
1 INSTALL_DIR=/etc/privoxy
2 VERSION=`cat VERSION`
3 PACKAGE_NAME=freedombox-privoxy
4 DEBDIR=`ls -d Debian/privoxy*| xargs | sed "s/ .*//"`
5
6 all: easyprivacy.action easylist.action https_everywhere.action changelog
7
8 easyprivacy.txt:
9         @wget https://easylist-downloads.adblockplus.org/easyprivacy.txt
10
11 easylist.txt:
12         @wget https://easylist-downloads.adblockplus.org/easylist.txt
13
14 easyprivacy.action: easyprivacy.txt
15         @./abp_import.py easyprivacy.txt > easyprivacy.action
16
17 easylist.action: easylist.txt
18         @./abp_import.py easylist.txt > easylist.action
19
20 vendor:
21         @mkdir -p vendor
22
23 vendor/https-everywhere:
24         @rm -rf vendor/https_everywhere
25         @cd vendor; git clone git://git.torproject.org/https-everywhere.git https-everywhere
26
27 https_everywhere.action: vendor/https-everywhere
28         @./https_everywhere_import.py > https_everywhere.action
29
30 vendor/git2changelog/git2changelog.py:
31         @rm -rf vendor/git2changelog
32         @cd vendor; git clone git@github.com:jvasile/git2changelog.git git2changelog
33
34 # Note, this is the changelog for freedombox-privoxy, not for the debian package
35 changelog: vendor/git2changelog/git2changelog.py
36         @vendor/git2changelog/git2changelog.py > changelog
37
38 deb: debian
39 debian: easyprivacy.action https_everywhere.action easylist.action
40         ./make_deb.sh
41
42 install: all
43         mkdir -p $(INSTALL_DIR)
44         cp config default.freedombox.filter match-all.freedombox.action default.freedombox.action https_everywhere.action easyprivacy.action easylist.action $(INSTALL_DIR)
45         /etc/init.d/privoxy restart
46
47 clean:
48         @rm -rf easyprivacy.action easyprivacy.txt https_everywhere.action vendor/https-everywhere 1000_config.dpatch Debian/privoxy* Debian/freedombox-privoxy* easylist.action easylist.txt vendor/git2changelog