1234567891011121314151617181920212223242526272829303132333435 |
- # $Id: Makefile,v 1.6 2008/10/29 01:01:35 ghantoos Exp $
- #
- PYTHON=`which python`
- DESTDIR=/
- BUILDIR=$(CURDIR)/debian/xsser
- PROJECT=xsser
- VERSION=1.8.3
- all:
- @echo "make source - Create source package"
- @echo "make install - Install on local system"
- @echo "make buildrpm - Generate a rpm package"
- @echo "make builddeb - Generate a deb package"
- @echo "make clean - Get rid of scratch and byte files"
- source:
- $(PYTHON) setup.py sdist $(COMPILE)
- install:
- $(PYTHON) setup.py install --root $(DESTDIR) $(COMPILE)
- buildrpm:
- $(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
- builddeb:
- $(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
- rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
- dpkg-buildpackage -i -I -rfakeroot
- clean:
- $(PYTHON) setup.py clean
- $(MAKE) -f $(CURDIR)/debian/rules clean
- rm -rf build/ MANIFEST
- find . -name '*.pyc' -delete
|