File: rules

package info (click to toggle)
odb 2.4.0-17
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,868 kB
  • sloc: cpp: 41,219; sh: 11,329; makefile: 38
file content (34 lines) | stat: -rwxr-xr-x 777 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
32
33
34
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CXXFLAGS += -fno-devirtualize

PKGDIR=$(CURDIR)/debian/odb/

override_dh_auto_clean:
	dh_clean
	rm -f $(CURDIR)/config.log $(CURDIR)/config.lt $(CURDIR)/libtool

override_dh_auto_configure:
	dh_auto_configure -- CC=gcc-13 CXX=g++-13

override_dh_install:
	dh_install
	# remove extra copyright files
	rm $(PKGDIR)/usr/share/doc/odb/GPLv3
	rm $(PKGDIR)/usr/share/doc/odb/LICENSE


%:
	dh $@

.PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_install