File: rules

package info (click to toggle)
netscape4.77 4.77-2
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 27,132 kB
  • ctags: 63
  • sloc: sh: 1,927; makefile: 319
file content (86 lines) | stat: -rwxr-xr-x 2,306 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

SHELL=/bin/bash
DEBVER:= $(shell dpkg-parsechangelog 2>&1|egrep ^Version|cut -d " " -f 2|cut -d "-" -f 2)
SRCVER:= $(shell dpkg-parsechangelog 2>&1|egrep ^Version|cut -d " " -f 2|cut -d "-" -f 1)
VER:= $(SRCVER)
VERS:= $(shell echo $(SRCVER)|sed 's/\.//')

ARCH:=$(shell dpkg --print-installation-architecture)

DH_COMPAT = 2
export DH_VERBOSE DH_COMPAT VERS VER

build: build-indep build-arch

build-indep:
	$(MAKE) -C locale

build-arch:

install: install-indep install-arch

install-indep: build-indep
	ARCH=$(ARCH) X_PATH=$(X_PATH) $(SHELL) debian/installer indep

install-arch: build-arch
	ARCH=$(ARCH) X_PATH=$(X_PATH) $(SHELL) debian/installer arch

clean: debian/control
	dh_testdir
	$(MAKE) -C locale clean
	dh_clean
	rm -f build build-arch build-indep log filelist* debian/control
	$(MAKE) -f debian/rules debian/control

debian/control: debian/control.base debian/control.d/* debian/changelog debian/installer
	$(SHELL) debian/installer control | sed 's/\$${VER}/$(VER)/g;s/\$${VERS}/$(VERS)/g' > $@

binary-indep: install-indep debian/control
	dh_testdir -i
	dh_testroot -i
#	dh_movefiles -i
#	dh_installdocs -i
	dh_installmenu -i
	dh_installmanpages -i
#	dh_installchangelogs -i
	dh_strip -i
	dh_makeshlibs -i
#	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
#	dh_dirsizes -i
	dh_builddeb -i

META_EX=-Nnetscape-smotif-$(VERS) -Nnetscape-dmotif-$(VERS)
binary-arch: install-arch debian/control
	dh_testdir -s $(META_EX)
	dh_testroot -s $(META_EX)
#	dh_movefiles -s $(META_EX)
	dh_installdocs -pnetscape-base-$(VERS) debian/copyright.end-user debian/copyright.distributor.html
	dh_installmenu -s $(META_EX)
	dh_installmanpages -s $(META_EX)
	dh_installchangelogs -pnetscape-base-$(VERS)

#	The files come stripped. (or maybe not)
	dh_strip -s -Xreal $(META_EX)

	dh_makeshlibs -s $(META_EX)
	dh_compress -s $(META_EX) -Xcopyright.end-user -Xcopyright.distributor.html
	dh_fixperms -s
	dh_installdeb -s
	LD_PRELOAD= dh_shlibdeps -s $(META_EX)
	dh_gencontrol -s -u-VVER=$(VER) -u-VVERS=$(VERS)
	dh_md5sums -s $(META_EX)
#	dh_dirsizes -s $(META_EX)
	dh_builddeb -s

# Below here is fairly generic really

binary: binary-arch binary-indep


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