comparison lisp/oobr/Makefile @ 24:4103f0995bd7 r19-15b95

Import from CVS: tag r19-15b95
author cvs
date Mon, 13 Aug 2007 08:51:03 +0200
parents 376386a54a3c
children 131b0175ea99
comparison
equal deleted inserted replaced
23:0edd3412f124 24:4103f0995bd7
2 # SUMMARY: Build OO-Browser directories and distributions. 2 # SUMMARY: Build OO-Browser directories and distributions.
3 # 3 #
4 # AUTHOR: Bob Weiner 4 # AUTHOR: Bob Weiner
5 # 5 #
6 # ORIG-DATE: 6-Oct-94 at 03:42:38 6 # ORIG-DATE: 6-Oct-94 at 03:42:38
7 # LAST-MOD: 1-Nov-95 at 22:22:45 by Bob Weiner 7 # LAST-MOD: 21-Feb-97 at 18:37:04 by Bob Weiner
8 # 8 #
9 # Copyright (C) 1994-1995 Free Software Foundation, Inc. 9 # Copyright (C) 1994-1995 Free Software Foundation, Inc.
10 # See the file BR-COPY for license information. 10 # See the file BR-COPY for license information.
11 # 11 #
12 # This file is part of the OO-Browser. 12 # This file is part of the OO-Browser.
63 XEMACS = xemacs 63 XEMACS = xemacs
64 64
65 # Emacs version used to byte-compile .el files into .elc's. 65 # Emacs version used to byte-compile .el files into .elc's.
66 EMACS = $(XEMACS) 66 EMACS = $(XEMACS)
67 67
68 # Where to install IDA logo image.
69 datadir = ../../etc
68 # Where to install the Info version of the OO-Browser manual. 70 # Where to install the Info version of the OO-Browser manual.
69 infodir = ../info 71 infodir = ../../info
72 # Where to find the doc for the OO-Browser manual before installation.
73 tar_mandir = man
74 # Where to find the .texi source for the OO-Browser manual after installation.
75 mandir = ../../man
70 # Where to install the Texinfo version of the OO-Browser manual 76 # Where to install the Texinfo version of the OO-Browser manual
71 # along with its im/ directory of images. 77 # along with its im/ directory of images.
72 texidir = ../man 78 texidir = ../../man
73 79
74 # Site-specific Emacs Lisp libraries to load before byte-compiling any files 80 # Site-specific Emacs Lisp libraries to load before byte-compiling any files
75 # from this package. Typically the only reason to set this is to get Emacs 81 # from this package. Typically the only reason to set this is to get Emacs
76 # to include the directory of this package into its load-path variable, which 82 # to include the directory of this package into its load-path variable, which
77 # determines where it will find Lisp library files to load. 83 # determines where it will find Lisp library files to load.
116 122
117 ########################################################################## 123 ##########################################################################
118 # NO CHANGES REQUIRED BELOW HERE # 124 # NO CHANGES REQUIRED BELOW HERE #
119 ########################################################################## 125 ##########################################################################
120 126
121 OOBR_VERSION = 2.9.11 127 OOBR_VERSION = 2.10
122
123 MAN_DIR = man
124 128
125 # Libraries that must be pre-loaded before trying to byte-compile anything. 129 # Libraries that must be pre-loaded before trying to byte-compile anything.
126 PRELOADS = $(SITE_PRELOADS) -l ./br-start.el 130 PRELOADS = $(SITE_PRELOADS) -l ./br-start.el
127 131
128 # Compile in batch mode. Under Emacs 19 and XEmacs, load 132 # Compile in batch mode. Under Emacs 19 and XEmacs, load
156 EL_COMPILE = br-c-ft.el br-c++-ft.el br-c++.el br-clos-ft.el \ 160 EL_COMPILE = br-c-ft.el br-c++-ft.el br-c++.el br-clos-ft.el \
157 br-clos.el br-compl.el \ 161 br-clos.el br-compl.el \
158 br-eif-ft.el br-eif.el br-env.el br-ftr.el br-info.el \ 162 br-eif-ft.el br-eif.el br-env.el br-ftr.el br-info.el \
159 br-init.el br-java.el br-java-ft.el \ 163 br-init.el br-java.el br-java-ft.el \
160 br-lib.el br-menu.el br-objc-ft.el \ 164 br-lib.el br-menu.el br-objc-ft.el \
161 br-objc.el br-python.elc br-python-ft.elc \ 165 br-objc.el br-python.el br-python-ft.el br-site.el br-vers.el \
162 br-site.el br-vers.el \
163 br-smt.el br-start.el br-tree.el br.el c++-browse.el \ 166 br-smt.el br-start.el br-tree.el br.el c++-browse.el \
164 clos-brows.el eif-browse.el eif-calls.el eif-ise-er.el \ 167 clos-brows.el eif-browse.el eif-calls.el eif-ise-er.el \
165 hasht.el hmouse-br.el info-brows.el java-brows.el \ 168 hasht.el hmouse-br.el info-brows.el java-brows.el \
166 objc-brows.el python-browse.el smt-browse.el 169 objc-brows.el python-browse.el smt-browse.el
167 170
169 br-clos.elc br-compl.elc \ 172 br-clos.elc br-compl.elc \
170 br-eif-ft.elc br-eif.elc br-env.elc br-ftr.elc br-info.elc \ 173 br-eif-ft.elc br-eif.elc br-env.elc br-ftr.elc br-info.elc \
171 br-init.elc br-java.elc br-java-ft.elc \ 174 br-init.elc br-java.elc br-java-ft.elc \
172 br-lib.elc br-menu.elc br-objc-ft.elc \ 175 br-lib.elc br-menu.elc br-objc-ft.elc \
173 br-objc.elc br-python.elc br-python-ft.elc \ 176 br-objc.elc br-python.elc br-python-ft.elc \
174 br-site.elc br-vers.elc \ 177 br-site.elc br-vers.elc \
175 br-smt.elc br-start.elc br-tree.elc br.elc c++-browse.elc \ 178 br-smt.elc br-start.elc br-tree.elc br.elc c++-browse.elc \
176 clos-brows.elc eif-browse.elc eif-calls.elc eif-ise-er.elc \ 179 clos-brows.elc eif-browse.elc eif-calls.elc eif-ise-er.elc \
177 hasht.elc hmouse-br.elc info-brows.elc java-brows.elc \ 180 hasht.elc hmouse-br.elc info-brows.elc java-brows.elc \
178 objc-brows.elc python-browse.elc smt-browse.elc 181 objc-brows.elc python-browse.elc smt-browse.elc
179 182
190 xoobr: 193 xoobr:
191 cd tree-x; make 194 cd tree-x; make
192 195
193 196
194 install: xoobr 197 install: xoobr
198 $(MV) ida-logo.xpm $(datadir)
195 # Install the X OO-Browser in its executable directory. 199 # Install the X OO-Browser in its executable directory.
196 cd tree-x; make install 200 cd tree-x; make install
197 cd $(MAN_DIR); $(INSTALL) oo-browser.info* $(infodir); \ 201 cd $(tar_mandir); $(INSTALL) oo-browser.info* $(infodir); \
198 $(INSTALL) oo-browser.texi $(texidir); \ 202 $(INSTALL) oo-browser.texi $(texidir); \
199 $(INSTALL) im $(texidir) 203 $(INSTALL) im $(texidir)
200 204
201 # Record any .el files that need to be compiled. 205 # Record any .el files that need to be compiled.
202 .el.elc: 206 .el.elc:
227 # OOBR_DIR = full pathname of the directory where the OO-Browser lives 231 # OOBR_DIR = full pathname of the directory where the OO-Browser lives
228 # OOBR_ENV = full pathname of the Environment specification to build 232 # OOBR_ENV = full pathname of the Environment specification to build
229 oobr-env: 233 oobr-env:
230 cd $(OOBR_DIR); $(EMACS) $(BATCHFLAGS) $(PRELOADS) ${OOBR_ENV} -f br-env-batch-build 234 cd $(OOBR_DIR); $(EMACS) $(BATCHFLAGS) $(PRELOADS) ${OOBR_ENV} -f br-env-batch-build
231 235
232 dvi: $(MAN_DIR)/oo-browser.dvi 236 dvi: $(mandir)/oo-browser.dvi
233 237
234 info: $(MAN_DIR)/oo-browser.info 238 info: $(infodir)/oo-browser.info
235 239
236 ps: $(MAN_DIR)/oo-browser.ps 240 ps: $(mandir)/oo-browser.ps
237 241
238 $(MAN_DIR)/oo-browser.dvi: $(MAN_DIR)/oo-browser.info 242 $(mandir)/oo-browser.dvi: $(mandir)/oo-browser.info
239 cd $(MAN_DIR); tex oo-browser.texi; texindex oo-browser.??; tex oo-browser.texi 243 cd $(mandir); tex oo-browser.texi; texindex oo-browser.??; tex oo-browser.texi
240 244
241 $(MAN_DIR)/oo-browser.info: $(MAN_DIR)/oo-browser.texi 245 $(infodir)/oo-browser.info: $(mandir)/oo-browser.texi
242 cd $(MAN_DIR); $(MAKEINFO) oo-browser.texi 246 cd $(mandir); $(MAKEINFO) oo-browser.texi
243 247
244 $(MAN_DIR)/oo-browser.ps: $(MAN_DIR)/oo-browser.texi 248 $(mandir)/oo-browser.ps: $(mandir)/oo-browser.texi
245 make $(MAN_DIR)/oo-browser.dvi 249 make $(mandir)/oo-browser.dvi
246 -$(RM) $(MAN_DIR)/oo-browser.ps 250 -$(RM) $(mandir)/oo-browser.ps
247 cd $(MAN_DIR); $(DVIPS) -o oo-browser.ps oo-browser.dvi 251 cd $(mandir); $(DVIPS) -o oo-browser.ps oo-browser.dvi
248 252
249 tags: $(EL_TAGS) 253 tags: $(EL_TAGS)
250 $(ETAGS) $(EL_TAGS) tree-x/*.[ch] tree-nx/*.[mh] 254 $(ETAGS) $(EL_TAGS) tree-x/*.[ch] tree-nx/*.[mh]
251 255
252 hypb-tags: $(EL_TAGS) 256 hypb-tags: $(EL_TAGS)
254 258
255 clean: distclean 259 clean: distclean
256 $(RM) *.elc 260 $(RM) *.elc
257 261
258 version: 262 version:
259 fgrep $(OOBR_VERSION) BR-RELEASE br-vers.el man/oo-browser.texi 263 fgrep $(OOBR_VERSION) BR-RELEASE br-vers.el $(mandir)/oo-browser.texi
260 echo "" 264 echo ""
261 265
262 # Don't use this target. 266 # Don't use this target.
263 bw-install: 267 bw-install:
264 cd /usr/local/infodock/lisp/; \ 268 cd /home/infodock/lisp/; \
265 tar zxvf /tmp/oo-browser-$(OOBR_VERSION).tar.gz; \ 269 tar zxvf /tmp/oo-browser-$(OOBR_VERSION).tar.gz; \
266 cd oobr/; mv man/*.info* ../../info/; mv man/*.texi ../../man/; \ 270 cd oobr/; mv man/*.info* ../../info/; mv man/*.texi ../../man/; \
267 rm -rf man 271 mv ida-logo.xpm $(datadir); rm -rf hypb man
268 272
269 dist: version elc info 273 dist: version elc info
270 echo "Ensure version # in br-vers.el and man/oo-browser.texi is up to date." 274 echo "Ensure version # in br-vers.el and oo-browser.texi is up to date."
271 $(RM) -r $(DIST_DIR)/oobr 275 $(RM) -r $(DIST_DIR)/oobr
272 cd ..; $(TAR) clf $(DIST_DIR)/br.tar oobr 276 cd ..; $(TAR) clf $(DIST_DIR)/br.tar oobr
273 cd $(DIST_DIR); $(TAR) xf br.tar 277 cd $(DIST_DIR); $(TAR) xf br.tar
274 cd $(DIST_DIR)/oobr; $(RM) -r hypb man/im; make distclean; \ 278 cd $(DIST_DIR)/oobr; $(RM) -r hypb man/im; make distclean; \
275 mkdir hypb man/im; chmod 755 hypb man/im; \ 279 mkdir hypb man man/im; chmod 755 hypb man man/im; \
276 $(CP) /usr/local/infodock/info-local/im/oobr-* man/im 280 $(CP) /home/infodock/man/im/oobr-* man/im/; \
277 $(CP) $(HYPERBOLE) $(DIST_DIR)/oobr/hypb 281 $(CP) /home/infodock/man/oo-browser.texi man/; \
282 $(CP) /home/infodock/info/oo-browser.info* man/
283 $(CP) $(HYPERBOLE) $(DIST_DIR)/oobr/hypb/
284 $(CP) $(datadir)/ida-logo.xpm $(DIST_DIR)/oobr/
278 # This ver setup won't work under SunOS for some reason. 285 # This ver setup won't work under SunOS for some reason.
279 # ver="`head -3 oobr/br-vers.el | tail -1 | sed -e 's/.*|//'`" 286 # ver="`head -3 oobr/br-vers.el | tail -1 | sed -e 's/.*|//'`"
280 cd $(DIST_DIR); $(RM) br.tar; \ 287 cd $(DIST_DIR); $(RM) br.tar; \
281 $(TAR) --gzip -clf oo-browser-$(OOBR_VERSION).tar.gz oobr 288 $(TAR) -czlf oo-browser-$(OOBR_VERSION).tar.gz oobr
282 289
283 distclean: 290 distclean:
284 -$(RM) TAGS core .place* .*~ *~ *\# *.orig *.rej .nfs* 291 -$(RM) TAGS core .place* .*~ *~ *\# *.orig *.rej .nfs*
285 -cd tree-x; $(RM) .*~ *~ *\# *.orig *.rej *.o xoobr .nfs* 292 -cd tree-x; $(RM) .*~ *~ *\# *.orig *.rej *.o xoobr .nfs*
286 -cd tree-nx; $(RM) -r .*~ *~ *\# *.orig *.rej obj* TreeView.app .nfs* 293 -cd tree-nx; $(RM) -r .*~ *~ *\# *.orig *.rej obj* TreeView.app .nfs*
287 -cd $(MAN_DIR); $(RM) oo-browser.?? oo-browser.dvi .*~ *~ *\# *.orig *.rej .nfs* 294 -cd $(tar_mandir); $(RM) oo-browser.?? oo-browser.dvi .*~ *~ *\# *.orig *.rej .nfs*