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

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