2013-11-27 07:53:57 -06:00
|
|
|
PYTHONLIBDIR ?= $(shell python2 -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
|
|
|
|
2010-10-06 12:41:26 -05:00
|
|
|
SUBDIRS = py_default_encoding
|
|
|
|
|
|
|
|
all:
|
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
0000-12-31 18:09:24 -05:50
|
|
|
|
|
|
|
install:
|
2007-10-17 10:28:37 -05:00
|
|
|
if [ "$(DESTDIR)" = "" ]; then \
|
2013-11-27 07:53:57 -06:00
|
|
|
python2 setup.py install; \
|
2007-10-17 10:28:37 -05:00
|
|
|
else \
|
2013-11-27 07:53:57 -06:00
|
|
|
python2 setup.py install --root $(DESTDIR); \
|
0000-12-31 18:09:24 -05:50
|
|
|
fi
|
2010-10-06 12:41:26 -05:00
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
0000-12-31 18:09:24 -05:50
|
|
|
|
|
|
|
clean:
|
2008-08-08 08:35:05 -05:00
|
|
|
rm -f *~ *.pyc
|
2010-10-06 12:41:26 -05:00
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
0000-12-31 18:09:24 -05:50
|
|
|
|
2007-10-19 08:53:27 -05:00
|
|
|
distclean: clean
|
2011-09-12 16:01:23 -05:00
|
|
|
rm -f setup.py ipa-python.spec version.py services.py
|
2010-10-06 12:41:26 -05:00
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
2007-10-19 08:53:27 -05:00
|
|
|
|
2007-11-28 11:33:14 -06:00
|
|
|
maintainer-clean: distclean
|
|
|
|
rm -rf build
|
2010-10-06 12:41:26 -05:00
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
2007-11-28 11:33:14 -06:00
|
|
|
|
2007-09-04 12:22:45 -05:00
|
|
|
.PHONY: test
|
|
|
|
test: $(subst .py,.tst,$(TESTS))
|
|
|
|
|
|
|
|
%.tst: %.py
|
2013-11-27 07:53:57 -06:00
|
|
|
python2 $<
|