File: rules

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

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

%:
	dh $@ --buildsystem=octave

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_before_dh_auto_build:
	[ ! -f doc/Makefile ] || make -C doc html pdf info

execute_after_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

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