summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-04-21 17:56:06 +0200
committerMichael DeHaan <michael.dehaan@gmail.com>2012-04-21 17:56:06 +0200
commitf72114c657bb663c046441f5134694435f9a520d (patch)
tree57b0cbaac194cd11ff8945a26693f09d985bcf94 /Makefile
parentDon't prompt for password info if the pattern wouldn't have matched any hosts... (diff)
downloadansible-f72114c657bb663c046441f5134694435f9a520d.tar.xz
ansible-f72114c657bb663c046441f5134694435f9a520d.zip
Move setup.py stuff back to top level as "make sdist" was not working, plus, it makes sources cleaner.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index dae28e5b9b..72e9608df4 100644
--- a/Makefile
+++ b/Makefile
@@ -16,11 +16,6 @@ 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
@@ -70,15 +65,15 @@ clean:
rm -rf MANIFEST rpm-build
python:
- python $(DUSETUP) build
+ python setup.py build
install:
mkdir -p /usr/share/ansible
cp ./library/* /usr/share/ansible/
- python $(DUSETUP) install
+ python setup.py install
sdist: clean
- python ./$(DUSETUP) sdist -t $(DUMANIFEST)
+ python setup.py sdist -t MANIFEST.in
rpmcommon: sdist
@mkdir -p rpm-build
@@ -109,3 +104,10 @@ rpm: rpmcommon
@echo "Ansible RPM is built:"
@echo " rpm-build/noarch/$(RPMNVR).noarch.rpm"
@echo "#############################################"
+
+debian:
+ # stub target, FIXME!
+ (cd packaging/debian; dpkg-buildpackage -us -uc -rfakeroot)
+
+# for arch or gentoo, read instructions in the appropriate 'packaging' subdirectory directory
+