home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / stex2-18.zip / SeeTeX / Imakefile < prev    next >
Makefile  |  1992-06-26  |  3KB  |  122 lines

  1. /*
  2.  * Copyright 1989 Dirk Grunwald
  3.  * 
  4.  * Permission to use, copy, modify, distribute, and sell this software
  5.  * and its documentation for any purpose is hereby granted without fee,
  6.  * provided that the above copyright notice appear in all copies and that
  7.  * both that copyright notice and this permission notice appear in
  8.  * supporting documentation, and that the name of Dirk Grunwald or M.I.T.
  9.  * not be used in advertising or publicity pertaining to distribution of
  10.  * the software without specific, written prior permission.  Dirk
  11.  * Grunwald and M.I.T. makes no representations about the suitability of
  12.  * this software for any purpose.  It is provided "as is" without express
  13.  * or implied warranty.
  14.  * 
  15.  * DIRK GRUNWALD AND M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  16.  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17.  * FITNESS, IN NO EVENT SHALL M.I.T.  BE LIABLE FOR ANY SPECIAL, INDIRECT
  18.  * OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  19.  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  20.  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  21.  * OR PERFORMANCE OF THIS SOFTWARE.
  22.  * 
  23.  * Author:
  24.  *     Dr. Dirk Grunwald
  25.  *     Dept. of Computer Science
  26.  *     Campus Box 430
  27.  *     Univ. of Colorado, Boulder
  28.  *     Boulder, CO 80309
  29.  * 
  30.  *     grunwald@colorado.edu
  31.  *     
  32.  */ 
  33.  
  34. #define IHaveSubdirs
  35.  
  36. /*
  37. COMMON_SUBDIRS    = libtex Xtex Mftobdf Dviselect Dviconcat Texx Iptex
  38. */
  39. COMMON_SUBDIRS    = libtex Xtex Mftobdf Dviselect Dviconcat
  40.  
  41. #include "./Imake.Config"
  42.  
  43. #ifdef SunArchitecture
  44.   SUBDIRS = $(COMMON_SUBDIRS) Texsun
  45. #endif
  46.  
  47. #ifdef unixpc
  48.    SUBDIRS = libtex Tex3b1 Dviselect
  49. #endif
  50.  
  51. #if !defined(SunArchitecture) && !defined(unixpc)
  52.    SUBDIRS = $(COMMON_SUBDIRS)
  53. #endif
  54.  
  55. TARSUBDIRS = libtex Doc Xtex Mftobdf Dviselect Dviconcat \
  56.         Texx Iptex Fonts Texsun Tex3b1
  57.  
  58. #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
  59.  
  60. MakeSubdirs($(SUBDIRS))
  61. DependSubdirs($(SUBDIRS))
  62.  
  63.  
  64. FILES    = Imakefile Imake.Config fontdesc-example README \
  65.       Imake.cpp Imake.m4 NoImake
  66.  
  67. VERSION    =2.18.5
  68. FTP    =/srl/ftp
  69. tar:
  70.     for file in $(TARSUBDIRS);\
  71.     do\
  72.         (cd $$file ; $(MAKE) Makefile ) ;\
  73.     done
  74.     cd ..;\
  75.     rm -f SeeTeX.tar ; \
  76.     tar cf SeeTeX.tar SeeTeX/Imakefile ; \
  77.     for file in $(FILES);\
  78.     do\
  79.       tar rf SeeTeX.tar SeeTeX/$$file; \
  80.     done; \
  81.     cd SeeTeX; \
  82.     for file in $(TARSUBDIRS);\
  83.     do\
  84.       (cd $$file ; $(MAKE) TARFILE=SeeTeX.tar PRODUCT=SeeTeX tar);\
  85.     done ; \
  86.     cd .. ; \
  87.     mv SeeTeX.tar /usr/tmp ; \
  88.     rm -rf /usr/tmp/SeeTeX ; \
  89.     (cd /usr/tmp;\
  90.      tar xvf SeeTeX.tar;\
  91.      rm -f SeeTeX.tar $(FTP)/pub/SeeTeX/SeeTeX*.tar*;\
  92.      tar crf $(FTP)/pub/SeeTeX/SeeTeX-$(VERSION).tar SeeTeX;\
  93.      rm -rf SeeTeX ;\
  94.      compress $(FTP)/pub/SeeTeX/SeeTeX-$(VERSION).tar)
  95.     (cd Xtex; \
  96.         $(MAKE) xtex-$(VERSION).tar.Z;\
  97.         mv xtex-$(VERSION).tar.Z $(FTP)/pub/SeeTeX)
  98.     
  99.  
  100. libtex/lib.a:
  101.     cd libtex; $(MAKE)
  102.  
  103. xtex:    libtex/lib.a
  104.     cd Xtex; $(MAKE)
  105.  
  106. mftobdf XeT/mftobdf:
  107.     cd Mftobdf ; $(MAKE) mftobdf
  108.  
  109. dviselect Dviselect/dviselect:
  110.     cd Dviselect ; $(MAKE) dviselect
  111.  
  112. texsun Texsun/texsun:
  113.     cd Texsun ; $(MAKE) texsun
  114.  
  115. texx Texx/texx:
  116.     cd Texx ; $(MAKE) texx
  117.  
  118. iptex Iptex/iptex:
  119.     cd Iptex ; $(MAKE) iptex
  120.  
  121.  
  122.