| 1 |
#!/usr/bin/make -f |
| 2 |
# $XTermId: rules,v 1.7 2024/01/02 23:12:58 tom Exp $ |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
SHELL = /bin/bash |
| 8 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 9 |
|
| 10 |
export DEB_BUILD_MAINT_OPTIONS := hardening=+all qa=+bug reproducible=+all |
| 11 |
|
| 12 |
include /usr/share/dpkg/buildflags.mk |
| 13 |
|
| 14 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 15 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
| 16 |
|
| 17 |
config.status: configure |
| 18 |
dh_testdir |
| 19 |
./configure \ |
| 20 |
--program-prefix=b \ |
| 21 |
--host=$(DEB_HOST_GNU_TYPE) \ |
| 22 |
--build=$(DEB_BUILD_GNU_TYPE) \ |
| 23 |
--prefix=/usr \ |
| 24 |
--mandir=\$${prefix}/share/man |
| 25 |
|
| 26 |
build: build-stamp |
| 27 |
|
| 28 |
build-stamp: config.status |
| 29 |
dh_testdir |
| 30 |
$(MAKE) |
| 31 |
touch $@ |
| 32 |
|
| 33 |
clean: |
| 34 |
dh_testdir |
| 35 |
dh_testroot |
| 36 |
rm -f build-stamp |
| 37 |
[ ! -f Makefile ] || $(MAKE) clean |
| 38 |
rm -f config.log config.h Makefile config.status |
| 39 |
dh_clean |
| 40 |
|
| 41 |
install: build |
| 42 |
dh_testdir |
| 43 |
dh_testroot |
| 44 |
dh_prep |
| 45 |
dh_installdirs |
| 46 |
$(MAKE) prefix=$(CURDIR)/debian/bluit/usr install |
| 47 |
|
| 48 |
binary-indep: build install |
| 49 |
|
| 50 |
binary-arch: build install |
| 51 |
dh_testdir |
| 52 |
dh_testroot |
| 53 |
dh_installchangelogs luit.log.html |
| 54 |
dh_installdocs |
| 55 |
dh_installman |
| 56 |
dh_strip |
| 57 |
dh_compress |
| 58 |
dh_fixperms |
| 59 |
dh_installdeb |
| 60 |
dh_shlibdeps |
| 61 |
dh_gencontrol |
| 62 |
dh_md5sums |
| 63 |
dh_builddeb |
| 64 |
|
| 65 |
binary: binary-indep binary-arch |
| 66 |
.PHONY: build clean binary-indep binary-arch binary install |