File: rules

package info (click to toggle)
eblook 1:1.6.1-15
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 3,248 kB
  • sloc: sh: 8,319; ansic: 5,364; makefile: 62
file content (74 lines) | stat: -rwxr-xr-x 1,842 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/make -f
#-*- makefile -*-

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

PACKAGE = eblook

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS) dpkg-buildflags
CFLAGS=$(shell $(dpkg_buildflags) --get CFLAGS)
CPPFLAGS=$(shell $(dpkg_buildflags) --get CPPFLAGS)
LDFLAGS=$(shell $(dpkg_buildflags) --get LDFLAGS)

build-indep:

build-arch: build-arch-stamp
build-arch-stamp:
	dh_testdir
	dh_update_autotools_config
	CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr --infodir=/usr/share/info --with-eb-conf=/etc/eb.conf --without-readline
	$(MAKE)
	touch $@

build: build-indep build-arch

clean:
	dh_testdir
	dh_testroot
	rm -f *-stamp eblook-for-h2m
	rm -f dos/Makefile
	[ ! -f Makefile ] || $(MAKE) SUBDIRS= distclean
	dh_clean

install-indep:

install-arch:
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE) install-exec

	cp debian/eblook-for-h2m .
	chmod 700 eblook-for-h2m
	install -d $(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1
	PATH=$(CURDIR)/debian/$(PACKAGE)/usr/bin:$${PATH} help2man --include=$(CURDIR)/debian/eblook.h2m --output=$(CURDIR)/debian/$(PACKAGE)/usr/share/man/man1/eblook.1 $(CURDIR)/eblook-for-h2m; \
	rm -f eblook-for-h2m

install: install-indep install-arch

binary-indep: build-indep install-indep

binary-arch: build-arch install-arch
	dh_testdir
	dh_testroot
	dh_installchangelogs ChangeLog
	dh_installdocs
	dh_installinfo
#	dh_installexamples
#	dh_installmenu
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install-indep install-arch install