forked from iustin/pyxattr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (33 loc) · 902 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
DOCDIR = doc
DOCHTML = $(DOCDIR)/html
DOCTREES = $(DOCDIR)/doctrees
ALLSPHINXOPTS = -d $(DOCTREES) $(SPHINXOPTS) $(DOCDIR)
MODNAME = xattr.so
RSTFILES = doc/index.rst doc/module.rst NEWS README doc/conf.py
all: doc test
$(MODNAME): xattr.c
./setup.py build_ext --inplace
$(DOCHTML)/index.html: $(MODNAME) $(RSTFILES)
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCHTML)
touch $@
doc: $(DOCHTML)/index.html
dist:
fakeroot ./setup.py sdist
test:
@for ver in 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3; do \
if type python$$ver >/dev/null; then \
echo Testing with python$$ver; \
python$$ver ./setup.py test -q; \
fi; \
done;
@if type pypy >/dev/null; then \
echo Testing with pypy; \
pypy ./setup.py test -q; \
fi
clean:
rm -rf $(DOCHTML) $(DOCTREES)
rm -f $(MODNAME)
rm -rf build
.PHONY: doc test clean dist