File: rules

package info (click to toggle)
octave-queueing 1.2.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,468 kB
  • sloc: makefile: 55
file content (22 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/pkg-info.mk
export SOURCE_DATE_EPOCH

%:
	dh $@ --buildsystem=octave --with=octave

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
override_dh_auto_build:
	[ ! -f doc/Makefile ] || make -C doc html pdf info
	dh_auto_build
	# This problem was detected by Lintian (info-document-missing-image-file).
	# The image files are shared now by the HTML and INFO forms of
	# documentation.
	sed -i -e 's:src="\(.*\.png\)":src="/usr/share/doc/octave-queueing/\1":' doc/queueing.info
endif

override_dh_auto_clean:
	[ ! -f doc/Makefile ] || make -C doc clean
	dh_auto_clean