freeipa/ipa-python/Makefile
0001-01-01 00:00:00 +00:00

18 lines
389 B
Makefile

PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib()")
PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa
CONFIGDIR ?= $(DESTDIR)/etc/ipa
all: ;
install:
-mkdir -p $(PACKAGEDIR)
install -m 644 *.py $(PACKAGEDIR)
-mkdir -p $(CONFIGDIR)
if ! [ -e $(CONFIGDIR)/ipa.conf ]; then \
install -m 644 ipa.conf $(CONFIGDIR); \
fi
clean:
rm -f *~ *.pyc