File: rules

package info (click to toggle)
mmh 0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,964 kB
  • sloc: ansic: 26,132; sh: 6,871; makefile: 680; awk: 74
file content (22 lines) | stat: -rwxr-xr-x 649 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
export CFLAGS  += $(shell getconf LFS_CFLAGS)
export LDFLAGS += $(shell getconf LFS_LDFLAGS)

%:
	dh $@  --with autoreconf,bash-completion --no-parallel

override_dh_auto_configure:
	rm -f sbr/dtimep.c
	dh_auto_configure -- --bindir=/usr/bin/mh  \
	                     --libdir=/usr/lib/mmh \
	                     --sysconfdir=/etc/mmh

override_dh_auto_install:
	dh_auto_install
	rm debian/mmh/usr/bin/mh/print-mimetype

ORIG = ../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
get-orig-source:
	pristine-tar checkout $(ORIG) -s $(ORIG).asc