summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2012-04-19 13:42:44 -0400
committerTim Bielawa <tbielawa@redhat.com>2012-04-19 13:50:09 -0400
commit516df5f64fa12b33282848e3598031abcd6b0312 (patch)
tree04deaa06b95fe0360b3df641ffd7cd8140476e4d /Makefile
parent4578b1721325488d059273aec461c9c74b165532 (diff)
downloadansible-516df5f64fa12b33282848e3598031abcd6b0312.tar.gz
Move packaging related things out of the root directory:
Distutils MANIFEST.in, setup.py -> packaging/distutils/ directory.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b6aa3bba8a..dae28e5b9b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,11 @@ RPMVERSION := $(shell awk '/Version/{print $$2; exit}' < $(RPMSPEC) | cut -d "%"
RPMRELEASE := $(shell awk '/Release/{print $$2; exit}' < $(RPMSPEC) | cut -d "%" -f1)
RPMDIST = $(shell rpm --eval '%dist')
RPMNVR = "$(NAME)-$(RPMVERSION)-$(RPMRELEASE)$(RPMDIST)"
+# Python distutils options
+DUDIR = packaging/distutils
+DUSETUP = $(DUDIR)/setup.py
+DUMANIFEST = $(DUDIR)/MANIFEST.in
+
all: clean python
@@ -65,15 +70,15 @@ clean:
rm -rf MANIFEST rpm-build
python:
- python setup.py build
+ python $(DUSETUP) build
install:
mkdir -p /usr/share/ansible
cp ./library/* /usr/share/ansible/
- python setup.py install
+ python $(DUSETUP) install
sdist: clean
- python ./setup.py sdist
+ python ./$(DUSETUP) sdist -t $(DUMANIFEST)
rpmcommon: sdist
@mkdir -p rpm-build