File: rules

package info (click to toggle)
xxgdb 1.12-17
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 684 kB
  • ctags: 773
  • sloc: ansic: 8,536; sh: 1,207; makefile: 63
file content (101 lines) | stat: -rwxr-xr-x 2,420 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess. 

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

CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif

export CC = gcc

build: build-stamp
build-stamp: patch
	dh_testdir

	# Add here commands to compile the package.
	xmkmf -a
	$(MAKE) CDEBUGFLAGS='$(CFLAGS) -DUNIX98' \
		ICELIB= EXTENSIONLIB= SMLIB= XMULIB= LIBDIR=/usr/lib
	sed '1,/XXGDB history/d;/------------/d' XXGDB_README \
		> debian/upstream.changelog
	touch build-stamp

clean: clean1 unpatch
clean1:
	dh_testdir
	dh_testroot
	dh_prep
	dh_clean debian/upstream.changelog

	# Add here commands to clean up after the build process.
	test ! -f Makefile || { $(MAKE) clean && rm Makefile; }

install: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs usr/share/pixmaps/

	# Add here commands to install the package into debian/<packagename>
	install -o root -g root -m 644 debian/mini.debug.xpm debian/xxgdb/usr/share/pixmaps/
	$(MAKE) DESTDIR=`pwd`/debian/xxgdb \
		BINDIR=/usr/bin LIBDIR=/usr/lib install \
		MANPATH=/usr/share/man MANSUFFIX=1 install.man

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
#	dh_installdebconf	
	dh_installdocs README README.NEW_INTERFACE XXGDB_README XDBX_README
	dh_installexamples
	dh_installmenu
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
	dh_installcron
	dh_installman
	dh_installinfo
#	dh_undocumented
	dh_installchangelogs debian/upstream.changelog
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
#	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb


# And now the simple things for dpatch. Here we only apply/unapply the patches.
# You can do more things with dpatch, like having patches only applied on
# a special architecture - see the non-dh version of the sample for this!
patch: patch-stamp
patch-stamp:
	dpatch apply-all
	dpatch cat-all >patch-stamp
	touch patch-stamp

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched

binary: binary-indep binary-arch
.PHONY: binary clean binary-indep binary-arch build install patch unpatch \
	clean1