vigiboard / Makefile @ 6c664a14
History | View | Annotate | Download (959 Bytes)
1 |
NAME = vigiboard |
---|---|
2 |
BUILDENV = ../glue |
3 |
PYTHON = $(BUILDENV)/bin/python |
4 |
|
5 |
all: |
6 |
@echo "Template Makefile, to be filled with build and install targets" |
7 |
|
8 |
$(PYTHON): |
9 |
make -C $(BUILDENV) bin/python |
10 |
|
11 |
clean: |
12 |
find $(CURDIR) \( -name "*.pyc" -o -name "*~" \) -delete |
13 |
rm -rf data # temporary: sessions |
14 |
|
15 |
buildclean: clean |
16 |
rm -rf eggs develop-eggs parts .installed.cfg bin |
17 |
|
18 |
EPYDOC := $(shell [ -f $(BUILDENV)/bin/epydoc ] && echo $(BUILDENV)/bin/epydoc || echo $(PYTHON) /usr/bin/epydoc) |
19 |
apidoc: doc/apidoc/index.html |
20 |
doc/apidoc/index.html: $(PYTHON) $(NAME) |
21 |
rm -rf $(CURDIR)/doc/apidoc/* |
22 |
VIGILO_SETTINGS=$(BUILDENV)/settings.py PYTHONPATH=src \ |
23 |
$(EPYDOC) -o $(dir $@) -v \ |
24 |
--name Vigilo --url http://www.projet-vigilo.org \ |
25 |
--docformat=epytext $(NAME) |
26 |
|
27 |
lint: $(PYTHON) |
28 |
$(PYTHON) ./pylint_vigiboard.py $(NAME) |
29 |
|
30 |
tests: $(PYTHON) |
31 |
VIGILO_SETTINGS=$(BUILDENV)/settings.py \ |
32 |
$(BUILDENV)/bin/runtests-$(NAME) |
33 |
|
34 |
|
35 |
.PHONY: all clean buildclean apidoc lint tests |
36 |
|