home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / EDITOR / NVI179B / NVI179B.ZIP / docs / USD.doc / vi.ref / Makefile < prev    next >
Makefile  |  1996-10-10  |  717b  |  33 lines

  1. #    @(#)Makefile    8.20 (Berkeley) 8/18/96
  2.  
  3. MACROS=    -me
  4. ROFF=    groff
  5. TBL=    tbl
  6.  
  7. all: vi.ref.txt vi.ref.ps
  8.  
  9. vi.ref.txt: vi.ref index.so
  10.     soelim vi.ref | ${TBL} | groff ${MACROS} -Tascii > $@
  11.     rm -f index
  12.     chmod 444 $@
  13.  
  14. vi.ref.ps: vi.ref index.so
  15.     soelim vi.ref | ${TBL} | ${ROFF} ${MACROS} > $@
  16.     rm -f index
  17.     chmod 444 $@
  18.  
  19. index.so: vi.ref
  20.     # Build index.so, side-effect of building the paper.
  21.     soelim vi.ref | ${TBL} | ${ROFF} ${MACROS} > /dev/null
  22.     sed -e 's/MINUSSIGN/\\-/' \
  23.         -e 's/DOUBLEQUOTE/""/' \
  24.         -e "s/SQUOTE/'/" \
  25.         -e 's/ /__SPACE/g' < index | \
  26.     sort -u '-t    ' +0 -1 +1n | awk -f merge.awk | \
  27.     sed -e 's/__SPACE/ /g' > $@
  28.     rm -f index
  29.     chmod 444 $@
  30.  
  31. clean:
  32.     rm -f vi.ref.ps vi.ref.txt index index.so
  33.