~jaap.karssenberg/zim/pyzim-0.43-backports

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jaap Karssenberg
  • Date: 2010-01-18 00:42:46 UTC
  • Revision ID: pardus@cpan.org-20100118004246-c2i3mku13s44bxsk
Tags: 0.43
Release 0.43
* Last minute fix for version detection in wiki format
* Updated translations and Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile,v 1.6.1 2009/08/26 17:04:35 Bart de Koning Exp $
2
 
3
 
# Based on Makefile v 1.6 2008/10/29 01:01:35 by ghantoos
4
 
# http://ghantoos.org/2008/10/19/creating-a-deb-package-from-a-python-setuppy/#setuppy
5
 
 
6
1
PYTHON=`which python`
7
2
DESTDIR=/
8
3
BUILDIR=$(CURDIR)/debian/zim
33
28
        $(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
34
29
 
35
30
builddeb:
36
 
        # build the source package in the parent directory
37
 
        # then rename it to project_version.orig.tar.gz
38
 
        $(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../ --prune
39
 
        rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
40
 
        # build the package
41
31
        dpkg-buildpackage -i -I -rfakeroot
42
 
        # clean up build files
43
32
        $(MAKE) -f $(CURDIR)/debian/rules clean
44
33
 
45
34
clean: