Added BSD-like license.
[joel/kofoto.git] / Makefile
1 PREFIX = /usr/local
2
3 help:
4         @echo "Available targets:"
5         @echo
6         @echo "clean"
7         @echo "install [PREFIX=prefix]"
8
9 clean:
10         $(MAKE) -C src/web clean
11         rm -rf build dist
12         find . \( -name '*~' -o -name '.*~' -o -name '.#*' -o -name '*.pyc' \
13                   -o -name '*.orig' -o -name '*.bak' -o -name '*.rej' \
14                   -o -name MANIFEST \
15                \) -exec rm -f {} \;
16
17 install:
18         ./setup.py install --prefix=$(PREFIX)
19
20 dist:
21         ./setup.py sdist --formats=gztar,zip
22         ./setup.py bdist --formats=gztar,rpm
23         ./setup.py windows bdist_wininst --install-script gkofoto-windows-postinstall.py
24
25 check:
26         python src/test/alltests.py
27
28 .PHONY: help clean install dist check