-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
39 lines (30 loc) · 803 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
# la Makefile
srcdir := la/src
help:
@echo "Available tasks:"
@echo "help --> This help page"
@echo "build --> Build the Cython extension modules"
@echo "clean --> Remove all the build files for a fresh start"
@echo "test --> Run unit tests"
@echo "info --> Info about your la installation"
@echo "all --> clean, build, test, info"
@echo "sdist --> Make source distribution"
all: clean build test info
build:
rm -rf ${srcdir}/../clabel.so
python ${srcdir}/setup.py build_ext --inplace
test:
python -c "import la; la.test()"
sdist:
rm -f MANIFEST
git status
python setup.py sdist
info:
python -c "import la; la.info()"
# Phony targets for cleanup and similar uses
.PHONY: clean
clean:
rm -rf build
rm -rf dist
rm -rf la/cflabel.so
rm -rf ${srcdir}/build