PageRenderTime 40ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 20ms app.codeStats 10ms

/debian/rules

https://bitbucket.org/lindenlab/apiary/
Makefile | 65 lines | 48 code | 11 blank | 6 comment | 0 complexity | a29fbfde2a2537ae1d3dd94b26f31a70 MD5 | raw file
 1#!/usr/bin/make -f
 2# -*- makefile -*-
 3
 4# Uncomment this to turn on verbose mode.
 5#export DH_VERBOSE=1
 6
 7PACKAGE  := apiary
 8PKG_ROOT := $(CURDIR)/debian/$(PACKAGE)
 9
10# Install for every supported python version (listed in the control file).
11PYVERS := $(shell pyversions -vr)
12
13build: build-stamp patch
14build-stamp: $(PYVERS:%=build-version-%)
15	touch $@
16build-version-%:
17	dh_testdir
18	python$* setup.py build
19	touch $@
20
21patch: patch-stamp
22patch-stamp:
23	dpatch apply-all
24	touch $@
25
26unpatch:
27	dpatch deapply-all
28	rm -rf patch-stamp debian/patched
29
30clean: unpatch
31	dh_testdir
32	dh_testroot
33	rm -f *-stamp build-version-* install-version-*
34	rm -rf build dist *.egg-info
35	-find . -name '*.py[co]' -exec rm -f {} \;
36	dh_clean
37
38install: install-stamp
39install-stamp: build-stamp $(PYVERS:%=install-version-%)
40install-version-%:
41	dh_testdir
42	dh_testroot
43	dh_clean -k
44	dh_installdirs
45	python$* setup.py install \
46	    --root=$(PKG_ROOT) --single-version-externally-managed
47
48binary-indep: build install
49	dh_testdir
50	dh_testroot
51	dh_installchangelogs
52	dh_installdocs
53	#dh_installexamples -X.svn examples/*
54	dh_pycentral
55	dh_compress -X.py
56	dh_fixperms
57	dh_installdeb
58	dh_gencontrol
59	dh_md5sums
60	dh_builddeb
61
62binary-arch: build install
63
64binary: binary-indep binary-arch
65.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch