File: rules

package info (click to toggle)
libpgm 5.2.122~dfsg-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,472 kB
  • sloc: ansic: 54,216; sh: 11,239; cpp: 2,612; perl: 2,274; python: 247; makefile: 113
file content (23 lines) | stat: -rwxr-xr-x 649 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
#!/usr/bin/make -f
# -*- makefile -*-

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_clean:
	dh_clean
	# ignore generated files
	rm -f openpgm/pgm/version.c \
              openpgm/pgm/galois_tables.c
	rm -rf openpgm/pgm/autom4te.cache

override_dh_install:
	dh_install --fail-missing
	find debian/libpgm-dev/usr/lib  -name "*.la" -exec \
		sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
	dh_link -plibpgm-dev \
		/usr/lib/$(DEB_HOST_MULTIARCH)/libpgm-5.2.so.0.0.122 /usr/lib/$(DEB_HOST_MULTIARCH)/libpgm-5.2.so

%:
	dh $@ --sourcedirectory=openpgm/pgm

.PHONY: override_dh_clean override_dh_install