File: rules

package info (click to toggle)
liblouisxml 2.4.0-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,788 kB
  • sloc: sh: 10,349; ansic: 10,002; makefile: 592; xml: 228; python: 43
file content (29 lines) | stat: -rwxr-xr-x 823 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
25
26
27
28
29
#!/usr/bin/make -f
# -*- makefile -*-

MANS=xml2brl.1 msword2brl.1 rtf2brl.1 pdf2brl.1

%:
	dh $@

ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
override_dh_auto_configure:
	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_configure --reload-all-buildenv-variables
	dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build
	dh_auto_clean
	dh_auto_configure

override_dh_auto_build:
	dh_auto_build -- $(foreach MAN,$(MANS),--assume-new=$(MAN))
endif

override_dh_auto_clean:
	dh_auto_clean
	rm -f doc/liblouisxml.info doc/stamp-vti doc/version.texi \
		$(foreach MAN,$(MANS),man/$(MAN))

override_dh_auto_install:
	dh_auto_install -- $(foreach MAN,$(MANS),--assume-new=$(MAN))

	rm -f $(CURDIR)/debian/tmp/usr/bin/lbx_devonly
	chrpath -d $(CURDIR)/debian/tmp/usr/lib/*/liblouisxml.so.* $(CURDIR)/debian/tmp/usr/bin/xml2brl