|
|
|
|
PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib()")
|
|
|
|
|
PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa
|
|
|
|
|
CONFIGDIR ?= $(DESTDIR)/etc/ipa
|
2007-09-04 10:22:45 -07:00
|
|
|
TESTS = $(wildcard test/*.py)
|
|
|
|
|
|
|
|
|
|
all: ;
|
|
|
|
|
|
|
|
|
|
install:
|
2007-10-17 11:28:37 -04:00
|
|
|
if [ "$(DESTDIR)" = "" ]; then \
|
|
|
|
|
python setup.py install; \
|
|
|
|
|
else \
|
|
|
|
|
python setup.py install --root $(DESTDIR); \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
clean:
|
2008-08-08 09:35:05 -04:00
|
|
|
rm -f *~ *.pyc
|
|
|
|
|
|
2007-10-19 09:53:27 -04:00
|
|
|
distclean: clean
|
2008-08-08 09:35:05 -04:00
|
|
|
rm -f setup.py ipa-python.spec version.py
|
2007-10-19 09:53:27 -04:00
|
|
|
|
2007-11-28 12:33:14 -05:00
|
|
|
maintainer-clean: distclean
|
|
|
|
|
rm -rf build
|
|
|
|
|
|
2007-09-04 10:22:45 -07:00
|
|
|
.PHONY: test
|
|
|
|
|
test: $(subst .py,.tst,$(TESTS))
|
|
|
|
|
|
|
|
|
|
%.tst: %.py
|
|
|
|
|
python $<
|