-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
31 lines (25 loc) · 865 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
all: setup
FORCE:
PYTHON ?= python3
setup: FORCE
$(PYTHON) setup.py build_ext --inplace --with-ceres --with-cython
cov:
coverage erase
coverage run -a test/test_galaxy.py
coverage html
# coverage run test/test_psfex.py
# coverage run -a test/test_sdss.py
# coverage run -a test/test_tractor.py
# coverage run -a examples/tractor-sdss-synth.py --roi 100 200 100 200 --no-flipbook
.PHONY: cov
cython-clean:
@for x in basics brightness ceres_optimizer ducks ellipses engine galaxy \
image imageutils lsqr_optimizer mixture_profiles motion optimize patch \
pointsource psf psfex sersic sfd shifted sky splinesky tractortime \
utils wcs constrained_optimizer dense_optimizer; do \
rm tractor/$$x.c tractor/$$x.cpython*.so; \
done
doc:
$(MAKE) -C doc -f Makefile.sphinx html PYTHONPATH=$(shell pwd):${PYTHONPATH}
cp -a doc/_build/html .
.PHONY: doc