From aed1f9110511e3669ab43c3894064c1371878876 Mon Sep 17 00:00:00 2001 From: Karl MacMillan Date: Wed, 1 Aug 2007 16:21:13 -0400 Subject: Add local-dist target. Remove hard-coded config. --- ipa-python/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipa-python/Makefile') diff --git a/ipa-python/Makefile b/ipa-python/Makefile index bc6554be4..85acdb678 100644 --- a/ipa-python/Makefile +++ b/ipa-python/Makefile @@ -1,11 +1,14 @@ PYTHONLIBDIR ?= $(shell python -c "from distutils.sysconfig import *; print get_python_lib(1)") PACKAGEDIR ?= $(DESTDIR)/$(PYTHONLIBDIR)/ipa +CONFIGDIR ?= $(DESTDIR)/etc/ipa all: ; install: -mkdir -p $(PACKAGEDIR) install -m 644 *.py $(PACKAGEDIR) + -mkdir -p $(CONFIGDIR) + install -m 644 ipa.conf $(CONFIGDIR) clean: rm -f *~ *.pyc \ No newline at end of file -- cgit From 66ab69d0b23da46b21dbb4bf165011f318ec2da8 Mon Sep 17 00:00:00 2001 From: Karl MacMillan Date: Fri, 3 Aug 2007 10:27:59 -0400 Subject: Only install the ipa.conf file if it does not exist. --- ipa-python/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ipa-python/Makefile') diff --git a/ipa-python/Makefile b/ipa-python/Makefile index 85acdb678..b2e4660f8 100644 --- a/ipa-python/Makefile +++ b/ipa-python/Makefile @@ -8,7 +8,10 @@ install: -mkdir -p $(PACKAGEDIR) install -m 644 *.py $(PACKAGEDIR) -mkdir -p $(CONFIGDIR) - install -m 644 ipa.conf $(CONFIGDIR) + if ! [ -e $(CONFIGDIR)/ipa.conf ]; then \ + install -m 644 ipa.conf $(CONFIGDIR); \ + fi clean: - rm -f *~ *.pyc \ No newline at end of file + rm -f *~ *.pyc + -- cgit