File: rules

package info (click to toggle)
c2050 0.3b-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 144 kB
  • sloc: ansic: 280; makefile: 55; sh: 14; python: 8
file content (21 lines) | stat: -rwxr-xr-x 572 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

derives_from_ubuntu := $(shell (dpkg-vendor --derives-from Ubuntu && echo "yes") || echo "no")

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- 'LD=$$(CC)'

override_dh_auto_install:
	dh_auto_install --destdir=debian/printer-driver-c2050/

override_dh_install:
	dh_install
ifeq ($(derives_from_ubuntu),yes)
	# Install the apport hook on Ubuntu and derivatives
	install -D -m 644 debian/local/apport-hook.py $(CURDIR)/debian/printer-driver-c2050/usr/share/apport/package-hooks/source_c2050.py
endif