File: rules

package info (click to toggle)
pstoedit 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,304 kB
  • sloc: cpp: 30,257; perl: 1,693; ansic: 1,218; java: 860; makefile: 295; sh: 82; awk: 15
file content (27 lines) | stat: -rwxr-xr-x 761 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

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
	@echo "Clear rpath in GUI executable; remove if build system starts doing this itself."
	-chrpath --delete debian/tmp/usr/bin/PstoeditQtGui

override_dh_installchangelogs:
	dh_installchangelogs doc/changelog.htm

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