File: rules

package info (click to toggle)
arachne-pnr 0.1%2B20190728gitc40fb22-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,080 kB
  • sloc: cpp: 10,681; python: 230; sh: 167; makefile: 164
file content (36 lines) | stat: -rwxr-xr-x 843 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/buildtools.mk

export HOST_CC ?= $(CC_FOR_BUILD)
export HOST_CXX ?= $(CXX_FOR_BUILD)

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PREFIX=/usr

export DEBIAN_VER=$(DEB_VERSION)

CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y")

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(RM) debian/man/*.1
	$(RM) -r share/

override_dh_auto_build:
	OPTDEBUGFLAGS="-O2 -DNDEBUG" ICEBOX=/usr/share/fpga-icestorm/chipdb dh_auto_build

override_dh_auto_install:
	OPTDEBUGFLAGS="-O2 -DNDEBUG" ICEBOX=/usr/share/fpga-icestorm/chipdb dh_auto_install

override_dh_installman:
	cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh
	dh_installman