File: rules

package info (click to toggle)
libpff 20120802-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,524 kB
  • ctags: 6,784
  • sloc: ansic: 214,206; sh: 11,485; makefile: 1,229; python: 138; java: 137; sed: 16
file content (24 lines) | stat: -rwxr-xr-x 607 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
#!/usr/bin/make -f

LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

override_dh_auto_test:
	# disable tests, they do not compile
	# undefined reference to libpff_item_get_display_name_size
	:

override_dh_clean:
	dh_clean
	find $(CURDIR) -name Makefile -delete
	for filename in common/config.h common/stamp-h1 dpkg/copyright dpkg/changelog libtool po/Makefile.in\
		po/POTFILES include/libpff/features.h;\
	do rm -f $$filename; done

%:
	dh $@  --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- LDFLAGS="-Wl,--as-needed $(LDFLAGS)"

override_dh_strip:
	dh_strip --dbg-package=libpff-dbg