File: rules

package info (click to toggle)
udunits 2.2.28-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,748 kB
  • sloc: sh: 11,655; ansic: 11,164; xml: 2,619; yacc: 492; lex: 337; makefile: 221
file content (29 lines) | stat: -rwxr-xr-x 613 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
#!/usr/bin/make -f


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

VERFILE:=$(shell pwd)/debian/udunits2.ver

# magic debhelper rule
%:
	dh $@  

override_dh_auto_clean:
	dh_auto_clean
	rm -f stamp-vti version.texi udunits2.info

override_dh_auto_configure:
	LDFLAGS=" -Wl,--as-needed -Wl,--version-script,${VERFILE} $(LDFLAGS)" \
			dh_auto_configure -- --datarootdir=/usr/share/xml


override_dh_auto_build:
	dh_auto_build
	$(MAKE) pdf

override_dh_auto_install:
	dh_auto_install
	dh_installchangelogs CHANGE_LOG
	rm -f debian/tmp/usr/lib/*/*.la debian/tmp/usr/share/xml/doc/udunits/CHANGE_LOG