File: rules

package info (click to toggle)
libmarpa 6.1.0~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,676 kB
  • sloc: perl: 38,979; ansic: 19,252; sh: 11,612; makefile: 376
file content (35 lines) | stat: -rwxr-xr-x 1,188 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
35
#!/usr/bin/make -f

# resolve if release is experimental
EXP_RELEASE = $(filter experimental% UNRELEASED,\
 $(shell dpkg-parsechangelog -S Distribution))

# relax symbols check when targeting experimental
export DPKG_GENSYMBOLS_CHECK_LEVEL=$(if $(EXP_RELEASE),0,1)

%:
	dh $@ --sourcedirectory=libmarpa_dist --builddirectory=build --with pkgkde_symbolshelper

# put aside upstream-shipped autogenerated files during build
CRUFT_COPY = libmarpa_dist/LIB_VERSION
execute_before_dh_auto_configure:
	$(foreach file,$(wildcard $(CRUFT_COPY)),\
		cp --force --no-target-directory -- $(file) $(file).save)
execute_after_dh_auto_clean:
	$(foreach file,$(wildcard $(CRUFT_COPY:%=%.save)),\
		mv --force --no-target-directory -- $(file:%.save=%) $(file))

# drop obsolete libtool linker files before debhelper notices and complains
execute_before_dh_install:
	find debian/tmp -name '*.la' -print -delete

# Let d-shlibs calculate development package dependencies
#  and handle shared library install
execute_after_dh_install:
	dh_install
	d-shlibmove --commit \
		--devunversioned \
		--exclude-la \
		--multiarch \
		--movedev "debian/tmp/usr/include/*" usr/include/ \
		debian/tmp/usr/lib/*/*.so