Project

General

Profile

Revision 6c664a14

ID6c664a14ca58f178772549ec0a4e105cbfb12dd6
Parent 0f56fff9
Child d7540235

Added by Aurelien BOMPARD over 14 years ago

début d'adaptation des makefiles

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@670 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

Makefile
15 15
buildclean: clean
16 16
	rm -rf eggs develop-eggs parts .installed.cfg bin
17 17

  
18
EPYDOC := $(shell [ -f $(BUILDENV)/bin/epydoc ] && echo $(BUILDENV)/bin/epydoc || echo $(PYTHON) /usr/bin/epydoc)
18 19
apidoc: doc/apidoc/index.html
19 20
doc/apidoc/index.html: $(PYTHON) $(NAME)
20 21
	rm -rf $(CURDIR)/doc/apidoc/*
21
	PYTHONPATH=$(BUILDENV):src $(PYTHON) "$$(which epydoc)" -o $(dir $@) -v \
22
	VIGILO_SETTINGS=$(BUILDENV)/settings.py PYTHONPATH=src \
23
		$(EPYDOC) -o $(dir $@) -v \
22 24
		   --name Vigilo --url http://www.projet-vigilo.org \
23 25
		   --docformat=epytext $(NAME)
24 26

  
......
26 28
	$(PYTHON) ./pylint_vigiboard.py $(NAME)
27 29

  
28 30
tests: $(PYTHON)
29
	VIGILO_SETTINGS_MODULE=settings_tests \
30
		PYTHONPATH=$(BUILDENV) $(BUILDENV)/bin/runtests-$(NAME)
31
	VIGILO_SETTINGS=$(BUILDENV)/settings.py \
32
		$(BUILDENV)/bin/runtests-$(NAME)
31 33

  
32 34

  
33 35
.PHONY: all clean buildclean apidoc lint tests

Also available in: Unified diff