File: rules

package info (click to toggle)
google-compute-image-packages 20190916-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,292 kB
  • sloc: python: 6,886; cpp: 1,907; sh: 1,665; ansic: 312; makefile: 149
file content (31 lines) | stat: -rwxr-xr-x 747 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
#!/usr/bin/make -f

export PYBUILD_NAME=google-compute-engine
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS={dir}/google_compute_engine/
export PYBUILD_SYSTEM=distutils
export PYBUILD_DIR=packages/python-google-compute-engine/

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

OSLOGIN_DIR=packages/google-compute-engine-oslogin

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C $(OSLOGIN_DIR) all

override_dh_auto_install:
	dh_auto_install
	
	$(MAKE) -C $(OSLOGIN_DIR) \
		DESTDIR=$(CURDIR)/debian/tmp \
		LIBDIR=/lib/$(DEB_HOST_MULTIARCH) install

override_dh_clean:
	dh_clean
	rm -rf google_compute_engine.egg-info