forked from datamicroscopes/lda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (46 loc) · 1.56 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
all:
@echo "choose a valid target"
.PHONY: release
release:
@echo "Setting up cmake (release)"
@python ./cmake/print_cmake_command.py Release
[ -d release ] || (mkdir release && cd release && eval `python ../cmake/print_cmake_command.py Release`)
.PHONY: relwithdebinfo
relwithdebinfo:
@echo "Setting up cmake (relwithdebinfo)"
@python ./cmake/print_cmake_command.py RelWithDebInfo
[ -d relwithdebinfo ] || (mkdir relwithdebinfo && cd relwithdebinfo && eval `python ../cmake/print_cmake_command.py RelWithDebInfo`)
.PHONY: debug
debug:
@echo "Setting up cmake (debug)"
@python ./cmake/print_cmake_command.py Debug
[ -d debug ] || (mkdir debug && cd debug && eval `python ../cmake/print_cmake_command.py Debug`)
.PHONY: debugbuild
debugbuild: debug
$(MAKE) -C debug
$(MAKE) -C debug test
$(MAKE) -C debug install
pip install -v -e .
nosetests -vv
.PHONY: test
test:
(cd test && nosetests --verbose)
.PHONY: travis_install
travis_install:
make relwithdebinfo
(cd relwithdebinfo && make && make install)
pip install .
.PHONY: travis_script
travis_script:
(cd test && nosetests --verbose -a '!slow' --nocapture)
.PHONY: lint
lint:
pyflakes microscopes test setup.py
pep8 --filename=*.py --ignore=E265 microscopes test setup.py
pep8 --filename=*.pyx --ignore=E265,E211,E225 microscopes
.PHONY: clean
clean:
rm -rf release relwithdebinfo debug microscopes_lda.egg-info
find microscopes/ -name '*.cpp' -type f -print0 | xargs -0 rm --
find microscopes/ -name '*.so' -type f -print0 | xargs -0 rm --
find microscopes/ -name '*.pyc' -type f -print0 | xargs -0 rm --