File: rules

package info (click to toggle)
txt2tags 2.6-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,496 kB
  • sloc: python: 3,814; lisp: 414; ruby: 356; sh: 238; php: 235; xml: 96; makefile: 47
file content (31 lines) | stat: -rwxr-xr-x 718 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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME=txt2tags
export PYBUILD_SYSTEM=custom
export PYBUILD_INSTALL_ARGS=install -D txt2tags debian/txt2tags{install_dir}/txt2tags.py

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

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

override_dh_auto_test:
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
	cd test && ./run.py
endif

override_dh_install:
	dh_install
	install -D debian/usr-bin-txt2tags debian/txt2tags/usr/bin/txt2tags
	cd po && $(MAKE) install BASEDIR=$(CURDIR)/debian/txt2tags

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