File: rules

package info (click to toggle)
pstoedit 3.78-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,240 kB
  • sloc: cpp: 28,955; sh: 4,543; ansic: 1,044; java: 860; makefile: 272; awk: 15
file content (27 lines) | stat: -rwxr-xr-x 680 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
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

export DEB_CXXFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-O1

ifeq ($(DEB_BUILD_ARCH_OS),hurd)
export DEB_CXXFLAGS_MAINT_APPEND += -lpthread
endif

%:
	dh $@

execute_after_dh_auto_install:
	@echo "Clearing .la files dependency_libs fields per Debian policy"
	sed --in-place "/dependency_libs/ s/'.*'/''/" $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pstoedit/*.la

override_dh_installchangelogs:
	dh_installchangelogs doc/changelog.htm

override_dh_compress:
	dh_compress --exclude=.ps --exclude=.pdf