File: rules

package info (click to toggle)
balboa 2.0.0%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,308 kB
  • sloc: ansic: 10,581; makefile: 160; python: 127; sh: 60
file content (31 lines) | stat: -rwxr-xr-x 1,021 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
28
29
30
31
#!/usr/bin/make -f

#export DH_VERBOSE = 1
export DH_GOPKG := github.com/DCSO/balboa
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_GOLANG_INSTALL_EXTRA := testdata

%:
	dh $@ --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_auto_clean:
	dh_auto_clean
	rm -rf debian/man

override_dh_installsystemd:
	dh_installsystemd -p balboa balboa.service
	dh_installsystemd -p balboa-backend-common --no-enable --no-start \
	  --name=balboa-backend@ balboa-backend@.service

override_dh_auto_build:
	dh_auto_build
	mkdir -p debian/man
	find . -executable -wholename '*bin/balboa' -exec {} makeman --dir debian/man \;
	make -C backend
	help2man --no-discard-stderr -N -n 'RocksDB backend for balboa' \
	       	backend/balboa-rocksdb/build/balboa-rocksdb > debian/man/balboa-rocksdb.1
	help2man --no-discard-stderr -N -n 'Backend maintenance console for balboa' \
		backend/balboa-backend-console/build/balboa-backend-console > debian/man/balboa-backend-console.1