File: rules

package info (click to toggle)
ne 3.3.2-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 4,196 kB
  • sloc: ansic: 28,509; perl: 568; makefile: 261; sh: 9
file content (20 lines) | stat: -rwxr-xr-x 551 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
BUILDDIR := $(CURDIR)/debian/tmp

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean -- -C src
	rm -f src/version.texinfo

override_dh_auto_build:
	dh_auto_build -- -Wall -C src PREFIX=/usr NE_GLOBAL_DIR=/usr/share/ne LIBS=-ltinfo

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(BUILDDIR) PREFIX=/usr
	# upstream does not ship ne.info.gz maximally compressed, so
	# uncompress it here and let dh_compress later do the job right
	gunzip $(BUILDDIR)/usr/share/info/ne.info*.gz