Skip to content

Commit

Permalink
Switched build to FPM.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrowley committed Jul 16, 2011
1 parent bbcdc6f commit de0f0bf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
29 changes: 13 additions & 16 deletions Makefile
Expand Up @@ -37,28 +37,25 @@ uninstall-lib:
rm -f \
$(DESTDIR)$(pydir)/cloudformation.py \
$(DESTDIR)$(pydir)/cloudformation.pyc
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(pydir)

uninstall-man:
rm -f $(DESTDIR)$(mandir)/man7/python-cloudformation.7
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(mandir)/man7

build:
sudo make deb
make pypi

deb:
[ "$$(whoami)" = "root" ] || false
m4 \
-D__PYTHON__=python$(PYTHON_VERSION) \
-D__VERSION__=$(VERSION)-$(BUILD)py$(PYTHON_VERSION) \
control.m4 >control
debra create debian control
make install prefix=/usr DESTDIR=debian
chown -R root:root debian
debra build debian python-cloudformation_$(VERSION)-$(BUILD)py$(PYTHON_VERSION)_all.deb
debra destroy debian
build: build-deb build-pypi

pypi:
build-deb:
make install prefix=/usr DESTDIR=debian
fpm -s dir -t deb -C debian \
-n python-cloudformation -v $(VERSION)-$(BUILD)py$(PYTHON_VERSION) -a all \
-d python$(PYTHON_VERSION) \
-m "Richard Crowley <richard@devstructure.com>" \
--url "https://github.com/devstructure/python-cloudformation" \
--description "Tools for creating CloudFormation templates."
make uninstall prefix=/usr DESTDIR=debian

build-pypi:
m4 -D__VERSION__=$(VERSION) setup.py.m4 >setup.py
$(PYTHON) setup.py bdist_egg

Expand Down
8 changes: 0 additions & 8 deletions control.m4

This file was deleted.

0 comments on commit de0f0bf

Please sign in to comment.