File: rules

package info (click to toggle)
vblade 25-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 336 kB
  • sloc: ansic: 1,310; sh: 633; makefile: 60
file content (38 lines) | stat: -rwxr-xr-x 949 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
34
35
36
37
38
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
	PLATFORM=freebsd
else
	PLATFORM=linux
endif

%:
	dh $@

override_dh_clean:
	-rm \
		debian/vblade-persist-convert.8 \
		contrib/persistence/vblade-persistence.5
	dh_clean

override_dh_auto_build:
	dh_auto_build --no-parallel -- PLATFORM=$(PLATFORM)

override_dh_auto_install:
	$(MAKE) install prefix=debian/vblade/usr

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_installman:
	asciidoctor --attribute reproducible --backend=manpage debian/vblade-persist-convert.txt
	asciidoctor --attribute reproducible --backend=manpage contrib/persistence/vblade-persistence.txt
	dh_installman

# needed as long as vblade-generator is provided by a patch
override_dh_fixperms:
	dh_fixperms
	chmod 0755 debian/vblade/lib/systemd/system-generators/vblade-generator