File: rules

package info (click to toggle)
gdb-doc 16.3-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 244,264 kB
  • sloc: ansic: 2,134,731; asm: 375,582; exp: 206,875; cpp: 73,639; makefile: 70,232; sh: 26,038; python: 13,697; yacc: 11,341; ada: 7,358; xml: 6,098; perl: 5,077; pascal: 3,389; tcl: 2,986; f90: 2,764; lisp: 1,984; cs: 879; lex: 738; sed: 228; awk: 181; objc: 137; fortran: 57
file content (97 lines) | stat: -rwxr-xr-x 2,513 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/make -f

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

BUILDDIR = objdir
DOCDIR = /usr/share/doc/gdb-doc

DH_AUTO_OPTIONS = -B$(BUILDDIR)

# Flags to configure as little as possible
CONFIGURE_FLAGS = $(shell ls -d */|sed -e 's|\(.*\)/|--disable-\1|'|grep -v gdb)
CONFIGURE_FLAGS += --without-zlib --without-expat --without-python
CONFIGURE_FLAGS += --without-lzma --without-tcl --without-x
CONFIGURE_FLAGS += --without-babeltrace --without-gdbserver

# Let the manual mention this path
CONFIGURE_FLAGS += --with-system-gdbinit=/etc/gdb/gdbinit

# Need eponymous and "install-" targets in gdb/doc/
DOCTARGETS = pdf info html man

INSTALLTARGETS = $(patsubst %,install-%,$(DOCTARGETS))

$(BUILDDIR)/config.status: configure
	dh_testdir
	dh_auto_configure $(DH_AUTO_OPTIONS) -- $(CONFIGURE_FLAGS)

build: build-arch build-indep
build-arch:
build-indep: build-stamp

build-stamp: $(BUILDDIR)/config.status
	dh_testdir
	$(MAKE) -C $(BUILDDIR) configure-gdb
	# "MAKEINFOFLAGS=--no-split" would go on the next line
	$(MAKE) -C $(BUILDDIR)/gdb/doc $(DOCTARGETS)
	touch $@

clean: 
	dh_testdir
	dh_testroot
	rm -rf $(BUILDDIR)
	rm -f build-stamp 
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep

	dh_installdirs
	$(MAKE) -C $(BUILDDIR)/gdb/doc DESTDIR=$(CURDIR)/debian/gdb-doc \
		docdir=$(DOCDIR) pdfdir=$(DOCDIR)/pdf htmldir=$(DOCDIR)/html \
		$(INSTALLTARGETS)

	# This manual documents a long-obsolete facility
	rm -f debian/gdb-doc/usr/share/info/annota*
	rm -rf debian/gdb-doc/usr/share/doc/gdb-doc/{pdf,html}/annota*

	# This manpage is worse than the outdated one in gdb installs
	# from its debian/ directory!
	rm -f debian/gdb-doc/usr/share/man/man1/gcore.*

	# This is just trash left behind by install-info(1)/dh_installinfo(1)
	rm -f debian/gdb-doc/usr/share/info/dir*

	# Symlink stuff into gdb's doc directory
	install -d debian/gdb-doc/usr/share/doc/gdb
	ln -s ../gdb-doc/html debian/gdb-doc/usr/share/doc/gdb/html
	ln -s ../gdb-doc/pdf debian/gdb-doc/usr/share/doc/gdb/pdf

# Build architecture-independent files here.
binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
#	dh_installexamples
#	dh_install
	dh_installinfo
#	dh_lintian
#	dh_undocumented
	dh_installchangelogs
	dh_installman
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch:

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