File: rules

package info (click to toggle)
golang-github-coreos-discovery-etcd-io 2.0.0%2Bgit2019.04.19.git.78fb45d3c9-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 23,460 kB
  • sloc: asm: 452; sh: 94; ansic: 24; makefile: 16
file content (27 lines) | stat: -rwxr-xr-x 925 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
#!/usr/bin/make -f

UPSTREAM_GIT = https://github.com/coreos/discovery.etcd.io
include /usr/share/openstack-pkg-tools/pkgos.make

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

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/etcd-discovery.init debian/etcd-discovery.service debian/etcd-discovery.postinst

override_dh_auto_build:
	/usr/share/openstack-pkg-tools/pkgos_insert_include pkgos_func etcd-discovery.postinst
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	rm $(CURDIR)/debian/*/usr/bin/dev
#	pkgos-gen-systemd-unit debian/golang-github-coreos-discovery-etcd-io.etcd-discovery.init.in
#	mkdir -p debian/golang-github-coreos-discovery-etcd-io/lib/systemd/system
#	cp debian/golang-github-coreos-discovery-etcd-io.etcd-discovery.service debian/golang-github-coreos-discovery-etcd-io/lib/systemd/system/etcd-discovery.service

override_dh_auto_test:

override_dh_dwz:
	DEB_BUILD_OPTIONS=nostrip dh_dwz