blob: 423a978c5b9403d52095edd12a535c407e4fcf58 (
plain) (
blame)
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
# 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 Cristoph Lameter.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_COMPAT=3
nossl:
@echo change to nossl version...
@cd debian && for i in *-nossl; do \
f=`echo $$i | sed -e 's/-nossl//'`; \
mv $$f $$f-ssl; \
mv $$i $$f; \
echo -n "$$f "; \
done
@chmod +x debian/rules
@echo done
ssl:
@echo already ssl version environments
include debian/rules.mk
build: build-stamp
build-stamp: configure-stamp
dh_testdir
(echo "# Configuration at "`hostname`; cat debian/config.param) > $(buildjadir)/config.param
cd $(buildjadir) && ./configure -yes -model=monster -lang=JA -clfags="-O2 -DDEBIAN" -code=E --gc-includedir=/usr/include/gc --ssl-includedir=/usr/include/openssl --mimetypes=/etc/mime.types
cd $(buildjadir) && LC_ALL=C $(MAKE) OPTS="-Wall -g"
(echo "# Configuration at "`hostname`; cat debian/config.param) > $(buildendir)/config.param
cd $(buildendir) && ./configure -yes -model=monster -lang=EN -cflags="-O2 -DDEBIAN" --gc-includedir=/usr/include/gc --ssl-includedir=/usr/include/openssl --mimetypes=/etc/mime.types
cd $(buildendir) && LC_ALL=C $(MAKE) OPTS="-Wall -g"
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -rf $(buildtree)
rm -f extract-stamp patch-stamp configure-stamp build-stamp install-stamp
rm -f debian/docs debian/examples
dh_clean
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
install -m 755 -s $(buildendir)/w3m `pwd`/debian/w3m-ssl/usr/bin/w3m-ssl-en
install -m 755 -s $(buildjadir)/w3m `pwd`/debian/w3m-ssl/usr/bin/w3m-ssl-ja
touch install-stamp
# Build architecture-independent files here.
binary-indep: build-stamp install-stamp
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build-stamp install-stamp
# dh_testversion
dh_testdir
dh_testroot
dh_installdocs
# dh_installmenu
# dh_installmime
# dh_installemacsen
# dh_installinit
# dh_installcron
# dh_installman $(builddir)/doc/w3m.1
# install -m 644 $(builddir)/doc-jp/HISTORY.kokb `pwd`/debian/w3m-ssl/usr/share/doc/w3m-ssl/changelog.w3m-kokb
#dh_installchangelogs $(builddir)/doc/HISTORY
dh_installchangelogs $(builddir)/ChangeLog
dh_strip
dh_compress
(cd debian/w3m-ssl/usr/share/doc/w3m-ssl; ls -1) | while read file; do \
case $$file in changelog*|copyright*|README.Debian) continue;; esac;\
test -d debian/w3m-ssl/usr/share/doc/w3m-ssl/$$file && continue; \
rm -f debian/w3m-ssl/usr/share/doc/w3m-ssl/$$file; \
dh_link usr/share/doc/w3m/$$file usr/share/doc/w3m-ssl/$$file; \
done
dh_link usr/share/doc/w3m/examples usr/share/doc/w3m-ssl/examples
dh_link usr/share/doc/w3m/ja usr/share/doc/w3m-ssl/ja
dh_link usr/share/man/man1/w3m.1.gz usr/share/man/man1/w3m-ssl-ja.1.gz
dh_link usr/share/man/man1/w3m.1.gz usr/share/man/man1/w3m-ssl-en.1.gz
dh_link usr/share/man/ja/man1/w3m.1.gz usr/share/man/ja/man1/w3m-ssl-ja.1.gz
dh_link usr/share/man/ja/man1/w3m.1.gz usr/share/man/ja/man1/w3m-ssl-en.1.gz
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
# dh_makeshlibs
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
|