File: rules

package info (click to toggle)
txt2tags 2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,264 kB
  • ctags: 471
  • sloc: python: 2,461; lisp: 414; ruby: 347; xml: 96; php: 95; sh: 83; makefile: 26
file content (38 lines) | stat: -rwxr-xr-x 922 bytes parent folder | download
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
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

-include /usr/share/python/python.mk
ifeq (,$(py_libdir))
  py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
endif
PYDEF=$(shell pyversions -vd)

override_dh_clean:
	dh_quilt_patch
	cd doc && $(MAKE) clean
	cd po && $(MAKE) clean
	rm -rf build
	dh_clean
	dh_quilt_unpatch

override_dh_auto_build:
	dh_quilt_patch
	dh_auto_build
	cd doc && $(MAKE) build

override_dh_install:
	dh_install
	install -D debian/usr-bin-txt2tags debian/txt2tags/usr/bin/txt2tags
	install -D txt2tags debian/txt2tags$(call py_libdir,$(PYDEF))/txt2tags.py
	cd po && $(MAKE) install BASEDIR=$(CURDIR)/debian/txt2tags

override_dh_compress:
	# get rid of macos temporary files in the build tree
	# dh_compress is just a late, useful place to do this
	find $(CURDIR)/debian/txt2tags -name '*._*' | xargs rm -f
	dh_compress

%:
	dh $@