File: rules.old

package info (click to toggle)
gdb-doc 10.1-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 237,684 kB
  • sloc: ansic: 1,939,544; asm: 342,614; exp: 164,373; cpp: 69,350; makefile: 58,777; sh: 25,051; yacc: 13,167; ada: 5,758; xml: 5,461; perl: 5,334; python: 4,759; pascal: 3,220; lisp: 1,575; tcl: 1,541; f90: 1,395; cs: 879; lex: 620; sed: 234; awk: 141; objc: 137; fortran: 62
file content (56 lines) | stat: -rw-r--r-- 1,807 bytes parent folder | download | duplicates (6)
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
#!/usr/bin/make -f

DEB_BUILDDIR = objdir

# This implements the .deb package creation using debhelper.
include /usr/share/cdbs/1/rules/debhelper.mk

# This implements building using a configure script and Makefile.
include /usr/share/cdbs/1/class/autotools.mk

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

# Rather paranoid than sorry. Make the shell exit with an error if an
# untested command fails.
SHELL += -e

INSTALL = /usr/bin/install -p
export INSTALL

DEB_MAKE_BUILD_TARGET = all info html pdf

build/gdb-doc:: $(DEB_BUILDDIR)/html $(DEB_BUILDDIR)/pdf

$(DEB_BUILDDIR)/pdf:
	mkdir $(DEB_BUILDDIR)/pdf
	mv $(DEB_BUILDDIR)/*.pdf $(DEB_BUILDDIR)/pdf/

$(DEB_BUILDDIR)/html:
	mkdir $(DEB_BUILDDIR)/html
	mv $(DEB_BUILDDIR)/gdb $(DEB_BUILDDIR)/html/
	mv $(DEB_BUILDDIR)/gdbint $(DEB_BUILDDIR)/html/
	mv $(DEB_BUILDDIR)/stabs $(DEB_BUILDDIR)/html/

common-binary-post-install-indep::
	rm -f debian/gdb-doc/usr/share/info/annota*
	rm -f debian/gdb-doc/usr/share/info/dir*
	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

post-patches::
	if ! test -f gdb/version.in.backup; then \
	  mv -f gdb/version.in gdb/version.in.backup; \
	  sed -e 's/$$/-debian/' < gdb/version.in.backup > gdb/version.in; \
	fi
	cd gdb/doc && autoreconf

clean::
	rm -rf $(DEB_BUILDDIR) gdb/doc/configure
	if test -f gdb/version.in.backup; then \
	  mv -f gdb/version.in.backup gdb/version.in; \
	fi