File: rules

package info (click to toggle)
lynx-cur 2.8.7dev4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,748 kB
  • ctags: 10,819
  • sloc: ansic: 120,416; sh: 3,525; makefile: 917; perl: 884
file content (143 lines) | stat: -rwxr-xr-x 3,759 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/usr/bin/make -f
#-*- makefile -*-
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Christoph Lameter.

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

# Uncomment this to turn on debug mode.
#export DEB_BUILD_OPTIONS="debug nostrip"

#export DH_COMPAT=4
export DH_OPTIONS=

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
DEBOP=--enable-debug
else
DEBOP=
endif

PACKAGE		:= $(shell dpkg-parsechangelog| 		\
			sed -n 's/^Source: \(.*\)$$/\1/p')
DSTDIR		:= $(CURDIR)/debian/$(PACKAGE)
BINDIR          := $(DSTDIR)/usr/bin
DOCDIR		:= $(DSTDIR)/usr/share/doc/$(PACKAGE)
SUBPACK		:= $(PACKAGE)-wrapper
SUBDIR		:= $(CURDIR)/debian/$(SUBPACK)

include /usr/share/dpatch/dpatch.make

configure: configure-stamp
configure-stamp: patch-stamp
	dh_testdir
	# Add here commands to configure the package.
	./configure --prefix=/usr --libexecdir=/usr/lib \
	--sysconfdir=/etc/lynx-cur --localstatedir=/var \
	--libdir=/etc/lynx-cur --enable-8bit-toupper --enable-externs \
	--enable-nsl-fork --enable-cgi-links --enable-exec-links \
	--enable-exec-scripts --enable-persistent-cookies --enable-nls \
	--enable-gzip-help --enable-prettysrc --enable-source-cache \
	--enable-cjk --enable-default-colors --enable-nested-tables \
	--enable-japanese-utf8 \
        --enable-forms-options --enable-justify-elts --enable-partial \
        --enable-read-eta --enable-scrollbar --enable-syslog \
	--with-gnutls=/usr --with-zlib --without-included-gettext \
	--with-screen=ncursesw --enable-justify-elts \
	${DEBOP}
#	--enable-color-style --enable-charset-choice --enable-font-switch

	touch configure-stamp

build: configure-stamp build-stamp
build-stamp:
	dh_testdir

	# Add here commands to compile the package.
	$(MAKE) x=".cur"

	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	debconf-updatepo
	rm -f build-stamp configure-stamp

	# Add here commands to clean up after the build process.
	-$(MAKE) distclean x=".cur"
	-rm -f intl/libintl.h

	dh_clean

install: install-indep install-arch
install-indep:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -i
	install -m 755 debian/lynx $(SUBDIR)/usr/bin/lynx-cur

install-arch:
	dh_testdir
	dh_testroot
	dh_clean -k -s 
	dh_installdirs -s
#	chmod +x scripts/*.sh
	# Add here commands to install the package into debian/$(package).
	$(MAKE) install-full x=".cur" prefix=$(DSTDIR)/usr \
	libdir=$(DSTDIR)/etc/$(PACKAGE) \
	sysconfdir=$(DSTDIR)/etc/$(PACKAGE) docdir=$(DOCDIR) \
	helpdir=$(DOCDIR)/lynx_help \
	mandir=$(DSTDIR)/usr/share/man/man1
	cd $(DOCDIR) ; rm -rf samples test
	cd $(DOCDIR) ; rm -f COPYING lynx_help/COPYING lynx_help/COPYHEADER \
		CHANGES
	cd $(DSTDIR)/usr/share/man/man1 ; mv lynx.1 lynx.cur.1
	install -m 644 debian/local.cfg \
		$(DOCDIR)/local.cfg.in

# Build architecture-independent files here.
# for lynx-cur-wrapper
binary-indep: DH_OPTIONS=-i
binary-indep: build install-indep
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installman debian/lynx-cur.1
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: DH_OPTIONS=-a
binary-arch: build install-arch
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
	dh_installmenu
	dh_installmime
	dh_installchangelogs CHANGES
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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