File: rules

package info (click to toggle)
litetlog 0.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: python: 237; makefile: 38; sh: 17
file content (47 lines) | stat: -rwxr-xr-x 1,477 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
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk # DEB_VERSION

%:
	dh $@ --builddirectory=_build --buildsystem=golang

# little of the self-checks appears to work (require internet connection?)
# so we ignore the error code but keep output in build logs
override_dh_auto_test:
	-dh_auto_test $(DH_BUILD_OPTS)

execute_after_dh_install-arch:
	rm -v $(CURDIR)/debian/litetlog/usr/bin/tlogclient-warmup
	mv -v $(CURDIR)/debian/litetlog/usr/bin/spicy $(CURDIR)/debian/litetlog/usr/bin/spicy-litetlog

B = $(CURDIR)/debian/tmp/usr/bin
M = $(CURDIR)/debian/tmp/usr/share/man/man1

ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
execute_before_dh_installman-arch:
	mkdir -pv $(M)
	env PATH="$(B):$$PATH" \
		help2man --version-string="$(DEB_VERSION)" \
		--no-info --no-discard-stderr \
		--name="transparency cosigning witness" \
		--output $(M)/litewitness.1 \
		litewitness
	env PATH="$(B):$$PATH" \
		help2man --version-string="$(DEB_VERSION)" \
		--no-info --no-discard-stderr \
		--name="operate on the litewitness(1) database" \
		--output $(M)/witnessctl.1 \
		witnessctl
	env PATH="$(B):$$PATH" \
		help2man --version-string="$(DEB_VERSION)" \
		--no-info --no-discard-stderr \
		--name="reverse proxy for transparency witnesses" \
		--output $(M)/litebastion.1 \
		litebastion
	env PATH="$(B):$$PATH" \
		help2man --version-string="$(DEB_VERSION)" \
		--no-info --no-discard-stderr \
		--name="spicy signature tool" \
		--output $(M)/spicy-litetlog.1 \
		spicy
endif