File: rules

package info (click to toggle)
digitemp 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 828 kB
  • sloc: ansic: 7,254; perl: 644; makefile: 118; python: 67; sh: 39; sql: 11
file content (27 lines) | stat: -rwxr-xr-x 832 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
23
24
25
26
27
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=makefile

override_dh_auto_build:
	mkdir -p build-serial/src build-serial/userial/ds9097 build-serial/userial/ds9097u
	dh_auto_build --builddirectory=build-serial -- -f ../Makefile SRCDIR=.. ds9097 ds9097u

override_dh_auto_install:
	install -m 0755 -d debian/digitemp/usr/bin
	install -m 0755 build-serial/digitemp_DS9097 debian/digitemp/usr/bin
	install -m 0755 build-serial/digitemp_DS9097U debian/digitemp/usr/bin

override_dh_installman:
	dh_installman digitemp.1
	dh_link usr/share/man/man1/digitemp.1.gz usr/share/man/man1/digitemp_DS9097.1.gz
	dh_link usr/share/man/man1/digitemp.1.gz usr/share/man/man1/digitemp_DS9097U.1.gz

override_dh_auto_clean:
	rm -rf build-serial
	$(MAKE) clean
	dh_clean