git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SFA for PL without specifing hostname
[nepi.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
cc56b5e
..
24e5b15
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,6
@@
SRCDIR = $(CURDIR)/src
TESTDIR = $(CURDIR)/test
SRCDIR = $(CURDIR)/src
TESTDIR = $(CURDIR)/test
+TESTLIB = $(TESTDIR)/lib
BUILDDIR = $(CURDIR)/build
DISTDIR = $(CURDIR)/dist
BUILDDIR = $(CURDIR)/build
DISTDIR = $(CURDIR)/dist
@@
-16,15
+17,15
@@
else
BUILDDIR := $(BUILDDIR)/lib
endif
BUILDDIR := $(BUILDDIR)/lib
endif
-PYPATH = $(BUILDDIR):$(PYTHONPATH)
+PYPATH = $(BUILDDIR):$(
TESTLIB):$(
PYTHONPATH)
COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
coverage)
COVERAGE = $(or $(shell which coverage), $(shell which python-coverage), \
coverage)
-all:
- ./setup.py build
+all:
clean
+
PYTHONPATH="$(PYTHONPATH):$(SRCDIR)"
./setup.py build
install: all
install: all
- ./setup.py install
+
PYTHONPATH="$(PYTHONPATH):$(SRCDIR)"
./setup.py install
test: all
retval=0; \
test: all
retval=0; \
@@
-33,6
+34,10
@@
test: all
PYTHONPATH="$(PYPATH)" $$i -v || retval=$$?; \
done; exit $$retval
PYTHONPATH="$(PYPATH)" $$i -v || retval=$$?; \
done; exit $$retval
+test-one: all
+ echo $(file) $(case)
+ PYTHONPATH="$(PYPATH)" python $(file) $(case)
+
coverage: all
rm -f .coverage
for i in `find "$(TESTDIR)" -perm -u+x -type f`; do \
coverage: all
rm -f .coverage
for i in `find "$(TESTDIR)" -perm -u+x -type f`; do \
@@
-44,8
+49,8
@@
coverage: all
rm -f .coverage
clean:
rm -f .coverage
clean:
- ./setup.py clean
rm -f `find -name \*.pyc` .coverage *.pcap
rm -f `find -name \*.pyc` .coverage *.pcap
+ rm -rf "$(BUILDDIR)"
distclean: clean
rm -rf "$(DISTDIR)"
distclean: clean
rm -rf "$(DISTDIR)"