File: rules

package info (click to toggle)
libewf 20140608-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,424 kB
  • ctags: 8,253
  • sloc: ansic: 297,847; sh: 13,697; cpp: 4,381; makefile: 1,972; yacc: 1,094; lex: 390; python: 352; sed: 134
file content (31 lines) | stat: -rwxr-xr-x 745 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
#!/usr/bin/make -f

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

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

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

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

override_dh_strip:
	dh_strip --dbg-package=libewf-dbg

override_dh_makeshlibs:
	dh_makeshlibs -a -V

override_dh_install:
	find debian/tmp/usr/lib  -name "*.la" -exec \
	sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
	dh_install

%:
	dh $@  --with autoreconf