0000-12-31 18:09:24 -05:50
|
|
|
PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib()")
|
0000-12-31 18:09:24 -05:50
|
|
|
PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa
|
0000-12-31 18:09:24 -05:50
|
|
|
CONFIGDIR ?= $(DESTDIR)/etc/ipa
|
2007-09-04 12:22:45 -05:00
|
|
|
TESTS = $(wildcard test/*.py)
|
0000-12-31 18:09:24 -05:50
|
|
|
|
|
|
|
all: ;
|
|
|
|
|
|
|
|
install:
|
2007-10-17 10:28:37 -05:00
|
|
|
if [ "$(DESTDIR)" = "" ]; then \
|
|
|
|
python setup.py install; \
|
|
|
|
else \
|
|
|
|
python setup.py install --root $(DESTDIR); \
|
0000-12-31 18:09:24 -05:50
|
|
|
fi
|
0000-12-31 18:09:24 -05:50
|
|
|
|
|
|
|
clean:
|
0000-12-31 18:09:24 -05:50
|
|
|
rm -f *~ *.pyc
|
|
|
|
|
2007-09-04 12:22:45 -05:00
|
|
|
.PHONY: test
|
|
|
|
test: $(subst .py,.tst,$(TESTS))
|
|
|
|
|
|
|
|
%.tst: %.py
|
|
|
|
python $<
|
|
|
|
|
|
|
|
|