File: rules

package info (click to toggle)
sumalibs 1.0.36-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 408 kB
  • sloc: ansic: 3,154; lex: 174; sh: 45; makefile: 25
file content (35 lines) | stat: -rwxr-xr-x 757 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CFLAGS+=$(CPPFLAGS)
CXXFLAGS+=$(CPPFLAGS)

#Set VERSION and SOVERSION
VERSION=1.0
SOVERSION=1

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_HOST_MULTIARCH)" \
		-DVERSION="$(VERSION)" \
		-DSOVERSION="$(SOVERSION)"

override_dh_clean:
	dh_clean
	-rm -rf $(CURDIR)/debian/tmp
	-rm -rf $(CURDIR)/debian/libsuma1
	-rm -rf $(CURDIR)/debian/libsuma-dev
	-rm -rf $(CURDIR)/debian/*debhelper*
	-rm $(CURDIR)/debian/*.substvars
	-rm $(CURDIR)/debian/files
	-rm -rf $(CURDIR)/obj-$(DEB_HOST_MULTIARCH)