debian/rules
author Christophe de Vienne <christophe@unlish.com>
Thu, 23 Oct 2014 16:38:28 +0200
changeset 11642 3defbb0f147a
parent 11632 b05f361db666
child 11653 18939907a115
permissions -rw-r--r--
Prepare release
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11632
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
#!/usr/bin/make -f
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
# Sample debian/rules that uses debhelper.
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
# GNU copyright 1997 to 1999 by Joey Hess.
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
# Uncomment this to turn on verbose mode.
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     6
#export DH_VERBOSE=1
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     7
build: build-arch build-indep
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     8
build-arch:
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     9
	# Nothing to do
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    10
build-indep: build-stamp
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    11
build-stamp:
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    12
	dh_testdir
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    13
	NO_SETUPTOOLS=1 python setup.py -q build
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    14
	touch build-stamp
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    15
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    16
clean:
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    17
	dh_testdir
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    18
	rm -f build-stamp configure-stamp
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    19
	rm -rf build
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    20
	find . -name "*.pyc" -delete
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    21
	dh_clean
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    22
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    23
install: build
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    24
	dh_testdir
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    25
	dh_testroot
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    26
	dh_clean -k
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    27
	dh_installdirs -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    28
	NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/cubicweb-pyramid/usr/
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    29
	# remove generated .egg-info file
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    30
	rm -rf debian/cubicweb-pyramid/usr/lib/python*
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    31
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    32
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    33
# Build architecture-independent files here.
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    34
binary-indep: build install
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    35
	dh_testdir
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    36
	dh_testroot
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    37
	dh_install -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    38
	dh_installchangelogs -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    39
	dh_installexamples -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    40
	dh_installdocs -i README
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    41
	dh_installman -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    42
	dh_pysupport -i /usr/share/cubicweb
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    43
	dh_link -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    44
	dh_compress -i -X.py -X.ini -X.xml -Xtest
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    45
	dh_fixperms -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    46
	dh_installdeb -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    47
	dh_gencontrol -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    48
	dh_md5sums -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    49
	dh_builddeb -i
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    50
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    51
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    52
# Build architecture-dependent files here.
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    53
binary-arch:
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    54
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    55
binary: binary-indep
b05f361db666 Project structure
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
    56
.PHONY: build clean binary-arch binary-indep binary