diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2012-04-19 13:42:44 -0400 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2012-04-19 13:50:09 -0400 |
commit | 516df5f64fa12b33282848e3598031abcd6b0312 (patch) | |
tree | 04deaa06b95fe0360b3df641ffd7cd8140476e4d /Makefile | |
parent | 4578b1721325488d059273aec461c9c74b165532 (diff) | |
download | ansible-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-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |