home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / cpp2latx.zip / MAKEFILE.UNI < prev    next >
Text File  |  1992-05-16  |  2KB  |  78 lines

  1. #
  2. #    Makefile for C++2LaTeX on Sun4        -joke
  3. #
  4.  
  5. CC    = cc
  6. CFLAGS    = -O2
  7. LDFLAGS = -s
  8.  
  9. LEX    = flex
  10.  
  11. TROFF    = psroff
  12.  
  13. all:    c++2latex demo
  14.  
  15. c++2latex:    c++2latex.o getopt1.o getopt.o version.o
  16.     $(CC) $(LDFLAGS) -o c++2latex c++2latex.o getopt1.o getopt.o version.o
  17.  
  18. c++2latex.o: c++2latex.l main.c
  19.  
  20. #    Set up *your* own, here:
  21. BINDIR    =    ../../bin
  22. TEXDIR    =    ../../tex/inputs
  23. MAN1DIR    =    ../../man/man1
  24.  
  25. install:
  26.     cp c++2latex $(BINDIR)
  27.     ln -s $(BINDIR)/c++2latex $(BINDIR)/c2latex
  28.     cp fancyheadings.sty $(TEXDIR)
  29.     cp fancyheadings.doc $(TEXDIR)
  30.     cp c++2latex.1    $(MAN1DIR)
  31.  
  32. uninstall:
  33.     rm -f $(BINDIR)/c++2latex
  34.     rm -f $(BINDIR)/c2latex
  35.     rm -f $(TEXDIR)/fancyheadings.sty
  36.     rm -f $(TEXDIR)/fancyheadings.doc
  37.     rm -f $(MAN1DIR)/c++2latex.1
  38.  
  39. SRC    =    .
  40. VERS    =    -2.0.0
  41. CONFIG    =    $(SRC)/config
  42. tape:    c++2latex.c
  43.     rm -f C++2LaTeX$(VERS).tar.Z
  44.     tar cf C++2LaTeX$(VERS).tar $(SRC)/LICENSE \
  45.         $(SRC)/Makefile \
  46.         $(SRC)/README \
  47.         $(SRC)/main.c $(SRC)/demo.c \
  48.         $(SRC)/c++2latex.1 $(SRC)/c++2latex.c $(SRC)/c++2latex.l \
  49.         $(SRC)/fancyheadings.sty $(SRC)/fancyheadings.doc \
  50.         $(SRC)/getopt.c $(SRC)/getopt.h $(SRC)/getopt1.c \
  51.         $(SRC)/version.c \
  52.         $(CONFIG)/README $(CONFIG)/mkpt $(CONFIG)/Imakefile \
  53.         $(CONFIG)/pretty.rules
  54.     compress C++2LaTeX$(VERS).tar
  55.  
  56. uue:    tape
  57.     uuencode C++2LaTeX$(VERS).tar.Z  C++2LaTeX$(VERS).tar.Z >C++2LaTeX$(VERS).uue
  58.  
  59. demo:    demo.c
  60.     c++2latex -h -n demo.c
  61.     latex demo.c.tex
  62.  
  63. self:    c++2latex.c
  64.     c++2latex -a -h c++2latex.c
  65.     latex c++2latex.c.tex
  66.  
  67. psman:
  68.     $(TROFF) -man c++2latex.1 >c++2latex.man.ps
  69.  
  70. man catman:
  71.     nroff -man c++2latex.1 >c++2latex.man
  72.  
  73. clean:
  74.     rm -f c++2latex.c *.c.tex *.aux *.log *.Z
  75.  
  76. clobber:
  77.     rm -f c++2latex.c *.c.dvi *.c.tex *.aux *.log *.o
  78.