File: rules

package info (click to toggle)
lv 4.51-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,964 kB
  • sloc: ansic: 9,048; sh: 1,380; perl: 485; makefile: 254; csh: 4
file content (39 lines) | stat: -rwxr-xr-x 1,098 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

CFLAGS += $(CPPFLAGS)

%:
	dh $@ --sourcedirectory=src --builddirectory=builddir

override_dh_auto_configure:
	dh_auto_configure -- --libdir=/usr/share --enable-fastio

override_dh_auto_build:
	dh_auto_build
	for i in index relnote; do \
		builddir/lv -Ou8 $(CURDIR)/$${i}.html > $(CURDIR)/debian/$${i}.html; \
	done

override_dh_auto_install:
	install -d -m 755 $(CURDIR)/debian/lv/usr/bin \
			  $(CURDIR)/debian/lv/usr/share/lv \
			  $(CURDIR)/debian/lv/usr/share/man/man1 \
			  $(CURDIR)/debian/lv/usr/share/doc
	install -m 755 builddir/lv $(CURDIR)/debian/lv/usr/bin/lv
	install -m 644 lv.hlp $(CURDIR)/debian/lv/usr/share/lv/lv.hlp
	install -m 644 lv.1 $(CURDIR)/debian/lv/usr/share/man/man1
	ln -sf lv debian/lv/usr/bin/lgrep
	ln -sf lv.1 debian/lv/usr/share/man/man1/lgrep.1

override_dh_auto_clean:
	dh_auto_clean
	for i in index relnote; do \
		rm -f $(CURDIR)/debian/$${i}.html; \
	done