comparison lisp/hyperbole/Makefile @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents c53a95d3c46d
children 1ce6082ce73f
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
2 # SUMMARY: Build Hyperbole directories and distributions. 2 # SUMMARY: Build Hyperbole directories and distributions.
3 # 3 #
4 # AUTHOR: Bob Weiner 4 # AUTHOR: Bob Weiner
5 # 5 #
6 # ORIG-DATE: 15-Jun-94 at 03:42:38 6 # ORIG-DATE: 15-Jun-94 at 03:42:38
7 # LAST-MOD: 18-Mar-97 at 00:45:58 by Bob Weiner 7 # LAST-MOD: 3-Nov-95 at 23:57:26 by Bob Weiner
8 # 8 #
9 # This file is part of Hyperbole. 9 # This file is part of Hyperbole.
10 # Available for use and distribution under the same terms as GNU Emacs. 10 # Available for use and distribution under the same terms as GNU Emacs.
11 # 11 #
12 # Copyright (C) 1994-1995, Free Software Foundation, Inc. 12 # Copyright (C) 1994-1995, Free Software Foundation, Inc.
45 45
46 # Where to install the Hyperbole mouse key help file. 46 # Where to install the Hyperbole mouse key help file.
47 datadir = ../../etc 47 datadir = ../../etc
48 # Where to install the Info version of the Hyperbole manual. 48 # Where to install the Info version of the Hyperbole manual.
49 infodir = ../../info 49 infodir = ../../info
50 # Where to find the .texi source for the Hyperbole manual.
51 mandir = ../../man
52 # Where to install the Texinfo version of the Hyperbole manual. 50 # Where to install the Texinfo version of the Hyperbole manual.
53 texidir = ../../man 51 texidir = ../../man
54 52
55 # Site-specific Emacs Lisp libraries to load before byte-compiling any files 53 # Site-specific Emacs Lisp libraries to load before byte-compiling any files
56 # from this package. Typically the only reason to set this is to get Emacs 54 # from this package. Typically the only reason to set this is to get Emacs
96 94
97 ########################################################################## 95 ##########################################################################
98 # NO CHANGES REQUIRED BELOW HERE. # 96 # NO CHANGES REQUIRED BELOW HERE. #
99 ########################################################################## 97 ##########################################################################
100 98
101 HYPB_VERSION = 4.023 99 HYPB_VERSION = 4.01
100
101 MAN_DIR = ../../man
102 102
103 # Libraries that must be pre-loaded before trying to byte-compile anything. 103 # Libraries that must be pre-loaded before trying to byte-compile anything.
104 PRELOADS = $(SITE_PRELOADS) -l ./hversion.el -l ./hyperbole.el -l ./hsite.el 104 PRELOADS = $(SITE_PRELOADS) -l ./hversion.el -l ./hyperbole.el -l ./hsite.el
105 105
106 # Compile in batch mode. Under Emacs 19 and XEmacs, load 106 # Compile in batch mode. Under Emacs 19 and XEmacs, load
153 all: elc 153 all: elc
154 154
155 doc: info ps 155 doc: info ps
156 156
157 install: elc doc 157 install: elc doc
158 cd $(mandir); $(INSTALL) hypb-mouse.txt $(datadir); \ 158 cd $(MAN_DIR); $(INSTALL) hypb-mouse.txt $(datadir); \
159 $(INSTALL) hyperbole.info* $(infodir); \ 159 $(INSTALL) hyperbole.info* $(infodir); \
160 $(INSTALL) hyperbole.texi $(texidir) 160 $(INSTALL) hyperbole.texi $(texidir)
161 161
162 install-v18: 162 install-v18:
163 $(MAKE) EMACS="$(EMACS18)" VPATH="" EL_KOTL="" ELC_KOTL="" install 163 $(MAKE) EMACS="$(EMACS18)" VPATH="" EL_KOTL="" ELC_KOTL="" install
198 198
199 # This creates the site-specific hsite.el file from hsite-ex.el if necessary. 199 # This creates the site-specific hsite.el file from hsite-ex.el if necessary.
200 hsite.el: hsite-ex.el 200 hsite.el: hsite-ex.el
201 \test -f hsite.el || $(CP) hsite-ex.el hsite.el 201 \test -f hsite.el || $(CP) hsite-ex.el hsite.el
202 202
203 dvi: $(mandir)/hyperbole.dvi 203 dvi: $(MAN_DIR)/hyperbole.dvi
204 204
205 info: $(infodir)/hyperbole.info 205 info: $(infodir)/hyperbole.info
206 206
207 ps: $(mandir)/hyperbole.ps 207 ps: $(MAN_DIR)/hyperbole.ps
208 208
209 $(mandir)/hyperbole.dvi: info 209 $(MAN_DIR)/hyperbole.dvi: info
210 cd $(mandir); tex hyperbole.texi; \ 210 cd $(MAN_DIR); tex hyperbole.texi; \
211 texindex hyperbole.??; tex hyperbole.texi 211 texindex hyperbole.??; tex hyperbole.texi
212 212
213 $(infodir)/hyperbole.info: $(mandir)/hyperbole.texi 213 $(infodir)/hyperbole.info: $(MAN_DIR)/hyperbole.texi
214 cd $(mandir); $(MAKEINFO) hyperbole.texi 214 cd $(MAN_DIR); $(MAKEINFO) hyperbole.texi
215 215
216 $(mandir)/hyperbole.ps: $(mandir)/hyperbole.texi 216 $(MAN_DIR)/hyperbole.ps: $(MAN_DIR)/hyperbole.texi
217 make $(mandir)/hyperbole.dvi 217 make $(MAN_DIR)/hyperbole.dvi
218 -$(RM) $(mandir)/hyperbole.ps 218 -$(RM) $(MAN_DIR)/hyperbole.ps
219 cd $(mandir); $(DVIPS) -o hyperbole.ps hyperbole.dvi 219 cd $(MAN_DIR); $(DVIPS) -o hyperbole.ps hyperbole.dvi
220 220
221 tags: $(EL_TAGS) 221 tags: $(EL_TAGS)
222 $(ETAGS) $(EL_TAGS) h-skip-bytec.lsp 222 $(ETAGS) $(EL_TAGS) h-skip-bytec.lsp
223 223
224 clean: 224 clean:
225 -$(RM) core .place* .*~ *~ *\# *.orig *.rej .nfs* 225 -$(RM) core .place* .*~ *~ *\# *.orig *.rej .nfs*
226 -cd kotl; $(RM) core .*~ *~ *\# *.orig *.rej .place* .nfs* 226 -cd kotl; $(RM) core .*~ *~ *\# *.orig *.rej .place* .nfs*
227 -cd $(mandir); $(RM) core .*~ *~ *\# *.orig *.rej .place* .nfs* 227 -cd $(MAN_DIR); $(RM) core .*~ *~ *\# *.orig *.rej .place* .nfs*
228 228
229 version: 229 version:
230 fgrep $(HYPB_VERSION) Makefile README hversion.el \ 230 fgrep $(HYPB_VERSION) Makefile README hversion.el \
231 $(mandir)/hyperbole.texi; echo "" 231 $(MAN_DIR)/hyperbole.texi; echo ""
232 232
233 # Don't use this target. 233 # Don't use this target.
234 bw-install: 234 bw-install:
235 cd /home/infodock/lisp/; \ 235 cd /usr/local/infodock/lisp/; \
236 tar zxvf /tmp/hyperbole-$(HYPB_VERSION).tar.gz; \ 236 tar zxvf /tmp/hyperbole-$(HYPB_VERSION).tar.gz; \
237 cd hyperbole/; \ 237 cd hyperbole/; \
238 mv man/hyperbole.info* ../../info/; mv man/hyperbole.texi ../../man/; \ 238 mv man/hyperbole.info* ../../info/; mv man/hyperbole.texi ../../man/; \
239 mv man/hypb-mouse.txt ../../etc/; rm -rf man 239 mv man/hypb-mouse.txt ../../etc/; rm -rf man
240 240
241 dist: version elc info 241 dist: version elc info
242 echo "Ensure version # in README, hversion.el, Makefile and man/hyperbole.texi is up to date." 242 echo "Ensure version # in README, hversion.el, Makefile and man/hyperbole.texi is up to date."
243 cd ..; $(TAR) clf $(DIST_DIR)/h.tar hyperbole; \ 243 cd ..; $(TAR) clf $(DIST_DIR)/h.tar hyperbole; \
244 $(CP) ../etc/ida-logo.xpm $(DIST_DIR); \
245 $(RM) -r $(DIST_DIR)/hman; mkdir $(DIST_DIR)/hman; \ 244 $(RM) -r $(DIST_DIR)/hman; mkdir $(DIST_DIR)/hman; \
246 $(CP) ../man/hyperbole.texi ../info/hyperbole.info* \ 245 $(CP) ../man/hyperbole.texi ../info/hyperbole.info* \
247 ../etc/hypb-mouse.txt $(DIST_DIR)/hman 246 ../etc/hypb-mouse.txt $(DIST_DIR)/hman
248 $(RM) -r $(DIST_DIR)/hyperbole 247 $(RM) -r $(DIST_DIR)/hyperbole
249 cd $(DIST_DIR); $(TAR) xf h.tar; \ 248 cd $(DIST_DIR); $(TAR) xf h.tar; $(MV) hman hyperbole/man
250 $(MV) hman hyperbole/man; $(MV) ida-logo.xpm hyperbole
251 cd $(DIST_DIR)/hyperbole; make distclean 249 cd $(DIST_DIR)/hyperbole; make distclean
252 # This ver setup won't work under SunOS for some reason. 250 # This ver setup won't work under SunOS for some reason.
253 # ver="`head -3 hyperbole/hversion.el | tail -1 | sed -e 's/.*|//'`" 251 # ver="`head -3 hyperbole/hversion.el | tail -1 | sed -e 's/.*|//'`"
254 cd $(DIST_DIR); $(RM) h.tar ver; \ 252 cd $(DIST_DIR); $(RM) h.tar ver; \
255 $(TAR) --gzip -clf hyperbole-$(HYPB_VERSION).tar.gz hyperbole 253 $(TAR) --gzip -clf hyperbole-$(HYPB_VERSION).tar.gz hyperbole
256 254
257 # Don't run this target manually. Use 'make dist' instead. 255 # Don't run this target manually. Use 'make dist' instead.
258 distclean: clean 256 distclean: clean
259 -$(RM) TAGS hsite.el* kotl/TO-DO* $(mandir)/hyperbole.dvi \ 257 -$(RM) TAGS hsite.el* kotl/TO-DO* $(MAN_DIR)/hyperbole.dvi \
260 $(mandir)/hyperbole.?? 258 $(MAN_DIR)/hyperbole.??