File: rules

package info (click to toggle)
latex2rtf 2.3.18a-5
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,392 kB
  • sloc: ansic: 20,424; makefile: 660; sh: 478; perl: 22
file content (30 lines) | stat: -rwxr-xr-x 925 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
30
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build-arch:
	dh_auto_build -a -- PREFIX=/usr DESTDIR=/usr CFLAGS="$(CFLAGS) $(CPPFLAGS)" latex2rtf

override_dh_auto_build-indep:
	dh_auto_build -i -- PREFIX=/usr DESTDIR=/usr CFLAGS="$(CFLAGS) $(CPPFLAGS)" doc

override_dh_auto_install-arch:
	$(MAKE) SUPPORTDIR=/usr/share/doc/latex2rtf-doc/ PREFIX=/usr DESTDIR=$(CURDIR)/debian/tmp/ install-bin
	chmod a-x $(CURDIR)/debian/tmp/usr/share/latex2rtf/cfg/*

override_dh_auto_install-indep:
	mkdir --parents $(CURDIR)/debian/tmp/usr/share/doc/latex2rtf-doc/
	$(MAKE) SUPPORTDIR=/usr/share/doc/latex2rtf-doc/ PREFIX=/usr DESTDIR=$(CURDIR)/debian/tmp/ install-doc

override_dh_auto_clean:
	$(MAKE) -C doc realclean || true
	dh_auto_clean -- realclean || true

override_dh_auto_test-arch:
	dh_auto_test -- LATEX2RTF='RTFPATH="../cfg" ../latex2rtf'

override_dh_auto_test-indep:
	true