File: rules

package info (click to toggle)
lrzip 0.651-3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,356 kB
  • sloc: ansic: 12,676; cpp: 2,865; sh: 568; makefile: 220; asm: 197
file content (41 lines) | stat: -rwxr-xr-x 1,002 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
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f
# -*- makefile -*-

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

PACKAGE = lrzip
PKGDIR	= $(CURDIR)/debian/$(PACKAGE)
DOCDIR	= $(PKGDIR)/usr/share/doc/lrzip

include /usr/share/dpkg/buildflags.mk
CFLAGS	+= -Wall -pedantic
LDFLAGS += -Wl,--as-needed

override_dh_auto_configure:
	# With pristine tarballs from version control, there is no ./configure
	[ -f configure ] || autoreconf -vfi
	dh_auto_configure -- LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"

override_dh_auto_build:
	$(MAKE) NO_ASSEMBLER=1

override_dh_auto_install:
	$(MAKE) DESTDIR=$(PKGDIR) \
		INSTALL_DOC=/usr/share/doc/lrzip \
		INSTALL_DOC_LZMA=/usr/share/doc/lrzip/lzma \
		install
	# Remove extra file
	rm -f $(DOCDIR)/README.Assembler
	# already in package bash-completion
	rm -rf $(PKGDIR)/etc

override_dh_dwz:
	@echo dh_dwz NOP due to being buggy

%:
	dh $@ --with autoreconf

.PHONY: override_dh_auto_configure override_dh_auto_build \
	override_dh_auto_install override_dh_dwz
# End of file