]> git.k1024.org Git - pylibacl.git/blob - Makefile
Workaround another py3k compatibility issue
[pylibacl.git] / Makefile
1 SPHINXOPTS    = -W
2 SPHINXBUILD   = sphinx-build
3 DOCDIR        = doc
4 DOCHTML       = $(DOCDIR)/html
5 DOCTREES      = $(DOCDIR)/doctrees
6 ALLSPHINXOPTS = -d $(DOCTREES) $(SPHINXOPTS) $(DOCDIR)
7
8 MODNAME = posix1e.so
9
10 all: doc test
11
12 $(MODNAME): acl.c
13         ./setup.py build_ext --inplace
14
15 doc: $(MODNAME)
16         $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCHTML)
17
18 test:
19         for ver in 2.4 2.5 2.6 3.0 3.1; do \
20           if type python$$ver >/dev/null; then \
21             echo Testing with python$$ver; \
22             python$$ver ./setup.py test; \
23           fi; \
24         done
25
26 clean:
27         rm -rf $(DOCHTML) $(DOCTREES)
28         rm -f $(MODNAME)
29         rm -rf build
30
31 .PHONY: doc test clean