home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Amiga / Magazine / Dossier-LaTeX / lgrind-amiga.lha / lgrind / src / Makefile < prev    next >
Makefile  |  1996-08-04  |  2KB  |  62 lines

  1. # Makefile for lgrind, a LaTeX prettyprinter
  2.  
  3. # $Id: Makefile,v 1.5 96/08/03 00:54:15 gvr Exp $
  4.  
  5. # You will almost certainly want to change these
  6.  
  7. CC=gcc
  8.  
  9. DESTDIR  =/usr/local/bin
  10. DEFSFILE = /stud/wadur/TeX/teTeX/lgrindefs
  11. #/usr/local/lib/lgrindefs
  12. TEXINPUTS=/usr/local/teTeX/texmf/tex/latex
  13.  
  14. SOURCES=lgrind.c regexp.c retest.c lgrindefs.c v2lg.c
  15. TEXFILES=lgrind.doc lgrind.sty fancyhead.doc fancyhead.sty \
  16.      docstrip.tex docstrip.cmd
  17. MANPAGES=lgrind.1 lgrindefs.5
  18. EXAMPLES=doc-lgrind.lg
  19. CMDS=lgrind v2lg
  20. OBJS=lgrind.o regexp.o retest.o lgrindefs.o v2lg.o
  21.  
  22. # CFLAGS=-O
  23. CFLAGS= -O3
  24.  
  25. all:    $(CMDS)
  26.  
  27. lgrind: lgrind.o lgrindefs.o regexp.o
  28.     $(CC) ${CFLAGS} -s -o lgrind lgrind.o lgrindefs.o regexp.o
  29.  
  30. lgrind.o: lgrind.c
  31.     $(CC) ${CFLAGS} -DDEFSFILE=\"${DEFSFILE}\" -c lgrind.c
  32.  
  33. v2lg:    v2lg.o
  34.     $(CC) ${CFLAGS} -s -o v2lg v2lg.o
  35.  
  36. tar:
  37.     tar cvf /tmp/lgrind.tar \
  38.        Makefile ${MANPAGES} lgrindefs ${SOURCES} ${TEXFILES} ${EXAMPLES}
  39.     compress /tmp/lgrind.tar
  40.  
  41. shar:
  42.     shar Makefile ${MANPAGES} lgrindefs ${SOURCES} ${TEXFILES} ${EXAMPLES}
  43.         > lgrind.shar
  44.  
  45. retest: retest.o regexp.o
  46.     $(CC) ${CFLAGS} -o retest retest.o regexp.o
  47.  
  48. install: all
  49.     install -s lgrind ${DESTDIR}/lgrind
  50.     install -s lgrindefs ${DEFSFILE}
  51.     install -c lgrind.doc ${TEXINPUTS}/lgrind.doc
  52.     install -c lgrind.sty ${TEXINPUTS}/lgrind.sty
  53.     install -c fancyhead.doc ${TEXINPUTS}/fancyhead.doc
  54.     install -c fancyhead.sty ${TEXINPUTS}/fancyhead.sty
  55.     install -c lgrind.1 /cs/man/man1/lgrind.1
  56.     install -c lgrindefs.5 /cs/man/man5/lgrindefs.5
  57.  
  58.  
  59. clean:
  60.     /bin/rm -f ${CMDS} ${OBJS} retest v2lg
  61.  
  62.