2015-11-03 09:39:40 -06:00
|
|
|
PYTHON ?= /usr/bin/python2
|
|
|
|
PYTHONLIBDIR ?= $(shell $(PYTHON) -c "from distutils.sysconfig import *; print(get_python_lib())")
|
0000-12-31 18:09:24 -05:50
|
|
|
|
2016-01-05 01:49:04 -06:00
|
|
|
SUBDIRS = ipap11helper
|
2010-10-06 12:41:26 -05:00
|
|
|
|
|
|
|
all:
|
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) $@) || exit 1; \
|
|
|
|
done
|
0000-12-31 18:09:24 -05:50
|
|
|
|
2015-11-13 00:54:12 -06:00
|
|
|
check:
|
|
|
|
|
2015-06-02 07:04:25 -05:00
|
|
|
.PHONY: install
|
0000-12-31 18:09:24 -05:50
|
|
|
install:
|
2007-10-17 10:28:37 -05:00
|
|
|
if [ "$(DESTDIR)" = "" ]; then \
|
2015-11-03 09:39:40 -06:00
|
|
|
$(PYTHON) setup.py install; \
|
2007-10-17 10:28:37 -05:00
|
|
|
else \
|
2015-11-03 09:39:40 -06:00
|
|
|
$(PYTHON) 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:
|
2015-11-03 09:39:40 -06:00
|
|
|
rm -f *~ *.pyc __pycache__/
|
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
|
2014-06-02 00:50:12 -05:00
|
|
|
rm -f setup.py ipa-python.spec version.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
|