File: rules

package info (click to toggle)
tilestache 1.51.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,688 kB
  • ctags: 893
  • sloc: python: 7,365; xml: 184; makefile: 77; sh: 37
file content (28 lines) | stat: -rwxr-xr-x 646 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=TileStache
export PYBUILD_TEST_NOSE=1

PREFIX := $(CURDIR)/debian/tilestache/

%:
	dh $@ \
		--with python2 \
		--buildsystem pybuild

override_dh_auto_test:
	OFFLINE_TESTS=1 NO_DATABASE=1 dh_auto_test

override_dh_auto_install:
	dh_auto_install

	rm -rf $(PREFIX)/usr/share/tilestache

	# rename the binaries
	for p in tilestache-server.py tilestache-seed.py tilestache-render.py tilestache-list.py tilestache-compose.py tilestache-clean.py; do \
		mv $(PREFIX)/usr/bin/$$p $(PREFIX)/usr/bin/$$(basename $$p .py); \
	done