File: rules

package info (click to toggle)
cloudsql-proxy 1.17.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 448 kB
  • sloc: sh: 107; makefile: 24
file content (38 lines) | stat: -rwxr-xr-x 1,055 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
32
33
34
35
36
37
38
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

package:=cloudsql-proxy
SRCTOP:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
INSTALL = install
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
    INSTALL_PROGRAM += -s
endif
install_file    = $(INSTALL) -p    -o root -g root  -m  644
install_program = $(INSTALL) -p    -o root -g root  -m  755
install_script  = $(INSTALL) -p    -o root -g root  -m  755
make_directory  = $(INSTALL) -p -d -o root -g root  -m  755
PREFIX=/usr

export DH_VERBOSE = 1

# Some tests require one to be on a GCE instance, and others
# expect to use fuse. These should be safe to run.
override_dh_auto_test:
	$(GO) test TestCreateInstanceConfigs
	$(GO) test TestParseInstanceConfig
	$(GO) test TestClientCache
	$(GO) test TestConcurrentRefresh
	$(GO) test TestMaximumConnectionsCount
	$(GO) test TestConnSetAdd
	$(GO) test TestConnSetRemove
	$(GO) test TestConns
	$(GO) test TestSplitName

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


#Local variables:
#mode: makefile
#End: