File: Makefile.in

package info (click to toggle)
w3m-el 1.4.569+0.20170110-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 5,780 kB
  • sloc: lisp: 45,666; sh: 515; makefile: 403
file content (253 lines) | stat: -rw-r--r-- 8,867 bytes parent folder | download | duplicates (2)
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
INSTALL      = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
prefix       = @prefix@
datarootdir  = @datarootdir@
datadir      = @datadir@
infodir      = @infodir@
lispdir      = @lispdir@
srcdir       = @srcdir@
PACKAGEDIR   = @PACKAGEDIR@
ICONDIR      = @ICONDIR@
ADDITIONAL_LOAD_PATH = @ADDITIONAL_LOAD_PATH@
GZIP_PROG    = @GZIP_PROG@
COMPRESS_INSTALL = @COMPRESS_INSTALL@

SHELL        = /bin/sh

@SET_MAKE@
EMACS   = @EMACS@
VANILLA_FLAG = @VANILLA_FLAG@
FLAGS   = $(VANILLA_FLAG) -batch -l $(srcdir)/w3mhack.el '$(ADDITIONAL_LOAD_PATH)'

## This is used to set the environment variable XEMACSDEBUG for XEmacs
## 21.5 in order to suppress warnings for Lisp shadows when XEmacs 21.5
## starts.  This is used also for not installing w3m-ems.el for XEmacs
## and w3m-xmas.el for GNU Emacs.
XEMACSDEBUG = @XEMACSDEBUG@

IGNORES = w3mhack.el

PACKAGE = emacs-w3m
TARBALL = $(PACKAGE)-$(VERSION).tar.gz
DISTDIR = $(PACKAGE)-$(VERSION)

default: all

all: lisp info

all-en: lisp info-en

all-ja: lisp info-ja

lisp: Makefile
	env test ! -f w3m-util.elc -o w3m-util.elc -nt w3m-util.el || $(MAKE) clean
	env test ! -f w3m-proc.elc -o w3m-proc.elc -nt w3m-proc.el || $(MAKE) clean
	$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-compile

# `w3mhack-what-where' respects DESTDIR
what-where:
	@$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-what-where\
	 '$(lispdir)' '$(ICONDIR)' '$(PACKAGEDIR)' '$(infodir)'

info:
	cd doc && $(MAKE) EMACS="$(EMACS)"

info-en:
	cd doc && $(MAKE) EMACS="$(EMACS)" en

info-ja:
	cd doc && $(MAKE) EMACS="$(EMACS)" ja

install: install-lisp install-info

install-en: install-lisp install-info-en

install-ja: install-lisp install-info-ja

install-lisp: lisp
	@$(SHELL) $(srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)";\
	for p in ChangeLog ChangeLog.[1-9] ChangeLog.[1-9][0-9] *.el; do\
	  if test -f "$$p"; then\
	    case "$$p" in\
	      $(IGNORES)) ;;\
	      w3m-ems\.el) if test -z "$(XEMACSDEBUG)"; then\
		echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\"";\
		$(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; fi;;\
	      w3m-xmas\.el) if test -n "$(XEMACSDEBUG)"; then\
		echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\"";\
		$(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; fi;;\
	      *) echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\"";\
		$(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p";;\
	    esac;\
	    if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"\
		-a -f "$$p"c -a -f "$(DESTDIR)$(lispdir)/$$p"; then\
		rm -f "$(DESTDIR)$(lispdir)/$$p".gz;\
		"$(GZIP_PROG)" -9n "$(DESTDIR)$(lispdir)/$$p";\
	    fi;\
	  fi;\
	done;\
	for p in *.elc; do\
	  if test -f "$$p"; then\
	    echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\"";\
	    $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p";\
	  fi;\
	done;\
	if test -f shimbun/shimbun.elc; then\
	  for p in `cd shimbun && echo ChangeLog ChangeLog.[1-9] ChangeLog.[1-9][0-9]`; do\
	    if test -f "shimbun/$$p"; then\
	      echo "$(INSTALL_DATA) shimbun/$$p \"$(DESTDIR)$(lispdir)/s$$p\"";\
	      $(INSTALL_DATA) shimbun/$$p "$(DESTDIR)$(lispdir)/s$$p";\
	    fi;\
	  done;\
	  for p in `cd shimbun && echo *.el`; do\
	    echo "$(INSTALL_DATA) shimbun/$$p \"$(DESTDIR)$(lispdir)/$$p\"";\
	    $(INSTALL_DATA) shimbun/$$p "$(DESTDIR)$(lispdir)/$$p";\
	    if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"\
		-a -f "shimbun/$$p"c; then\
		rm -f "$(DESTDIR)$(lispdir)/$$p".gz;\
		"$(GZIP_PROG)" -9n "$(DESTDIR)$(lispdir)/$$p";\
	    fi;\
	  done;\
	  for p in `cd shimbun && echo *.elc`; do\
	    echo "$(INSTALL_DATA) shimbun/$$p \"$(DESTDIR)$(lispdir)/$$p\"";\
	    $(INSTALL_DATA) shimbun/$$p "$(DESTDIR)$(lispdir)/$$p";\
	  done;\
	fi

install-icons:
	@if test "$(ICONDIR)" = NONE; then\
	  echo "You don't have to install icon files for \"$(EMACS)\".";\
	else\
	  $(SHELL) $(srcdir)/mkinstalldirs "$(DESTDIR)$(ICONDIR)";\
	  for i in `cd icons && echo *.gif *.png *.xpm`; do\
	    echo "$(INSTALL_DATA) icons/$$i \"$(DESTDIR)$(ICONDIR)/$$i\"";\
	    $(INSTALL_DATA) icons/$$i "$(DESTDIR)$(ICONDIR)/$$i";\
	  done;\
	fi

install-icons30:
	@if test "$(ICONDIR)" = NONE; then\
	  echo "You don't have to install icon files for \"$(EMACS)\".";\
	else\
	  $(SHELL) $(srcdir)/mkinstalldirs "$(DESTDIR)$(ICONDIR)";\
	  for i in `cd icons30 && echo *.gif *.png *.xpm`; do\
	    echo "$(INSTALL_DATA) icons30/$$i \"$(DESTDIR)$(ICONDIR)/$$i\"";\
	    $(INSTALL_DATA) icons30/$$i "$(DESTDIR)$(ICONDIR)/$$i";\
	  done;\
	fi

install-info: info
	@echo "cd doc && $(MAKE) EMACS=\"$(EMACS)\" infodir=\"$(DESTDIR)$(infodir)\" install";\
	cd doc && $(MAKE) EMACS="$(EMACS)" infodir="$(infodir)" install

install-info-en: info-en
	@echo "cd doc && $(MAKE) EMACS=\"$(EMACS)\" infodir=\"$(DESTDIR)$(infodir)\" install-en";\
	cd doc && $(MAKE) EMACS="$(EMACS)" infodir="$(infodir)" install-en

install-info-ja: info-ja
	@echo "cd doc && $(MAKE) EMACS=\"$(EMACS)\" infodir=\"$(DESTDIR)$(infodir)\" install-ja";\
	cd doc && $(MAKE) EMACS="$(EMACS)" infodir="$(infodir)" install-ja

install-package:
	@if test $(PACKAGEDIR) = NONE; then\
	  echo "What a pity!  Your \"$(EMACS)\" does not support"\
		"the package system.";\
	else\
	  $(MAKE) lispdir="$(PACKAGEDIR)/lisp/w3m" install-lisp;\
	  $(MAKE) ICONDIR="$(PACKAGEDIR)/etc/images/w3m" install-icons30;\
	  $(MAKE) infodir="$(PACKAGEDIR)/info" install-info;\
	  echo $(XEMACSDEBUG) \'$(EMACS)\' $(FLAGS) -f w3mhack-make-package $(DESTDIR)$(PACKAGEDIR);\
	  $(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-make-package $(DESTDIR)$(PACKAGEDIR);\
	fi

install-package-ja:
	@if test $(PACKAGEDIR) = NONE; then\
	  echo "What a pity!  Your \"$(EMACS)\" does not support"\
		"the package system.";\
	else\
	  $(MAKE) lispdir="$(PACKAGEDIR)/lisp/w3m" install-lisp;\
	  $(MAKE) ICONDIR="$(PACKAGEDIR)/etc/images/w3m" install-icons30;\
	  $(MAKE) infodir="$(PACKAGEDIR)/info" install-info-ja;\
	  echo $(XEMACSDEBUG) \'$(EMACS)\' $(FLAGS) -f w3mhack-make-package $(DESTDIR)$(PACKAGEDIR);\
	  $(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-make-package $(DESTDIR)$(PACKAGEDIR);\
	fi

Makefile: Makefile.in config.status
	$(srcdir)/config.status

config.status: configure
	$(srcdir)/config.status --recheck

configure: configure.in aclocal.m4
	autoconf

dist: Makefile w3m.elc
	$(MAKE) tarball \
	  VERSION=`$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-version 2>/dev/null` \
	  BRANCH=`cvs status Makefile.in|grep "Sticky Tag:"|awk '{print $$3}'|sed 's,(none),HEAD,'`

tarball: CVS/Root CVS/Repository
	-rm -rf $(DISTDIR) $(TARBALL) `basename $(TARBALL) .gz`
	cvs -d `cat CVS/Root` -w export -d $(DISTDIR) -r $(BRANCH) `cat CVS/Repository`
	-cvs diff |( cd $(DISTDIR) && patch -p0 )
	for f in BUGS.ja; do\
	  if [ -f $(DISTDIR)/$${f} ]; then\
	    rm -f $(DISTDIR)/$${f} || exit 1;\
	  fi;\
	done
	find $(DISTDIR) -name .cvsignore | xargs rm -f
	find $(DISTDIR) -type d | xargs chmod 755
	find $(DISTDIR) -type f | xargs chmod 644
	cd $(DISTDIR) && autoconf
	chmod 755 $(DISTDIR)/configure $(DISTDIR)/install-sh
	tar -cf `basename $(TARBALL) .gz` $(DISTDIR)
	"$(GZIP_PROG)" -9 `basename $(TARBALL) .gz`
	rm -rf $(DISTDIR)

clean:
	-rm -rf $(PACKAGE)* ;\
	rm -f *~ *.elc shimbun/*.elc w3m-load.el ;\
	rm -f doc/*~ doc/*.info doc/*.info-[0-9] doc/*.info-[0-9][0-9]\
 doc/version.texi

distclean: clean
	-rm -f config.log config.status config.cache Makefile doc/Makefile;\
	rm -fr autom4te*.cache

## Rules for the developers to check the portability for each module.
.SUFFIXES: .elc .el

.el.elc:
	@echo $(XEMACSDEBUG) \'$(EMACS)\' $(FLAGS) -f batch-byte-compile $*.el;\
	$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f batch-byte-compile $*.el

slow: Makefile
	@for i in `$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-examine-modules 2>/dev/null`;\
	do $(MAKE) -s $$i; done

very-slow: clean Makefile
	@args="$(VANILLA_FLAG) -batch";\
	args="$$args -l $(srcdir)/attic/addpath.el '$(ADDITIONAL_LOAD_PATH)'";\
	echo "=============================================";\
	echo "Compiling the 1st stage-----without elc files";\
	echo "=============================================";\
	for i in `$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-examine-modules 2>/dev/null`;\
	  do\
	  j=`echo $$i| sed 's/elc$$/el/g'`;\
	  echo $(XEMACSDEBUG) \'$(EMACS)\' ARGS -f batch-byte-compile $$j;\
	  $(XEMACSDEBUG) '$(EMACS)' $$args -f batch-byte-compile $$j;\
	  mv $$i $$j"x";\
	done;\
	for i in `echo *.elx shimbun/*.elx`; do\
	  j=`echo $$i| sed 's/elx$$/elc/g'`;\
	  if test -f $$i; then mv $$i $$j; fi;\
	done;\
	echo "==============================================";\
	echo "Compiling the 2nd stage-----with all elc files";\
	echo "==============================================";\
	for i in `$(XEMACSDEBUG) '$(EMACS)' $(FLAGS) -f w3mhack-examine-modules 2>/dev/null`;\
	  do\
	  j=`echo $$i| sed 's/elc$$/el/g'`;\
	  echo $(XEMACSDEBUG) \'$(EMACS)\' ARGS -f batch-byte-compile $$j;\
	  $(XEMACSDEBUG) '$(EMACS)' $$args -f batch-byte-compile $$j;\
	done