File: rules

package info (click to toggle)
libjpeg 0.0~git20250815.25f7128-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,108 kB
  • sloc: cpp: 36,493; makefile: 619; ansic: 275; sh: 54; python: 39; perl: 11
file content (33 lines) | stat: -rwxr-xr-x 853 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_clean:
	$(MAKE) realclean

override_dh_auto_install-arch:
	# nothing since I cannot get DESTDIR to work

execute_before_dh_installman: debian/jpeg.1

VERSION=$(shell grep Release README | tail -1 | cut -f1 -d: | cut -f2 -d' ')

debian/jpeg.1: debian/jpeg.1.in
ifeq (false,true)
	debian/libjpeg-tools/usr/bin/jpeg > debian/jpeg.tmp || true
	sed -i -e 's/^-/\n-/' -e '1i [DESCRIPTION]' debian/jpeg.tmp
	help2man --help-option=--info --include=debian/jpeg.tmp \
		--name="jpeg \- jpeg compressor" \
		--no-discard-stderr \
		--version-string=$(VERSION) \
		--help-option="--fake" \
		--output=$@ --no-info echo
else
	help2man --help-option=--info --include=$< \
		--version-string=$(VERSION) \
		--output=$@ --no-info debian/fake
endif