home *** CD-ROM | disk | FTP | other *** search
/ pc.louisiana.edu/pub/unix/ / Louisiana_UNIX.tar / Louisiana_UNIX / xspread3.0.zoo / Makefile.curse < prev    next >
Makefile  |  1994-03-25  |  14KB  |  528 lines

  1. # Makefile $Revision: 6.21 $
  2. #
  3. # 1) Select the proper EXDIR (path), MANDIR, MANEXT, LIBDIR, SIGVOID,
  4. #    RE_COMP/REGCMP, DFLT_PAGER, and FMOD. Most of the other things aren't
  5. #    normally changed (see the comments with each)
  6. # 2) Select the proper machine/compiler/OS section of code
  7. #    for MS-DOS look for the pattern 'MS-DOS'
  8. # 3) make install
  9. # 4) If you have the command 'file' that uses /etc/magic add the line:
  10. #    38    string        Spreadsheet    sc file
  11.  
  12. # Specify the name of the program.
  13. # All documentation and installation keys on this value.
  14. name=sc
  15. NAME=SC
  16.  
  17. # This is where the install step puts it.
  18. #EXDIR=/site/bin
  19. EXDIR=/usr/local/bin
  20.  
  21. # This is where the man page goes.
  22. #MANEXT=1            # reno, Sun OS 4.1.1, etc.
  23. #MANEXT=l
  24. #MANDIR=/usr/local/man/man${MANEXT}
  25. #MANDIR=/usr/local/src/man/man${MANEXT}    # reno
  26. MANDIR=/usr/man/man${MANEXT}
  27. MANMODE=644
  28. #MANMODE=444
  29.  
  30. # This is where the library file (tutorial) goes.
  31. #LIBDIR=/usr/local/share/$(name) # reno
  32. LIBDIR=/usr/local/lib/$(name)
  33.  
  34. # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
  35. SIMPLE=
  36. #SIMPLE=-DSIMPLE
  37.  
  38. # Set BROKENCURSES if your curses has the nl/nonl bug
  39. # if it does and you don't set BROKENCURSES, the display will
  40. # be staggered across the screen. Also try IDLOKBAD below.
  41. BROKENCURSES=
  42. #BROKENCURSES=-DBROKENCURSES
  43.   
  44. # Set SHOWCURSOR to TRUE if you want the default action to show a cursor,
  45. # set it to FALSE otherwise.  Set SHOWCURSORTAG the same way to change
  46. # the manual page.
  47. SHOWCURSOR=TRUE
  48. SHOWCURSORTAG=on
  49. #SHOWCURSOR=FALSE
  50. #SHOWCURSORTAG=off
  51.  
  52. # Set DOBACKUPS if you would like a backup copy of a source file on a save
  53. #DOBACKUPS=
  54. DOBACKUPS=-DDOBACKUPS
  55.  
  56. # Set INTERNATIONAL if you need 8 bit characters.  You should
  57. # not set this if you are running 5.3.0.  I think it is OK in 5.3.1.
  58. #INTERNATIONAL=-DINTERNATIONAL
  59. INTERNATIONAL=
  60.  
  61. # Set SIGVOID if signal routines are type void.
  62. # use: SIGVOID=-DSIGVOID for:
  63. #    System 5.3, SunOS 4.X, VMS, BSD4.4 (reno), and ANSI C Compliant systems
  64. # use: SIGVOID=        for:
  65. #  BSD systems (excluding reno, BSD4.4), and the UNIXPC 'cc'
  66. SIGVOID=-DSIGVOID
  67. #SIGVOID=
  68.  
  69. # Set IEEE_MATH if you need setsticky() calls in your signal handlers
  70. #
  71. #IEEE_MATH=-DIEEE_MATH
  72. IEEE_MATH=
  73.  
  74. # Set RINT=-DRINT if you do not have rint() in math.h
  75. # Set RINT=    on/with (they have rint):
  76. #    SunOS 4.0.3c & 4.1.1 compiler
  77. #    BSD4.4 (reno)
  78. #RINT=
  79. RINT=-DRINT
  80.  
  81. # Specify the type of regular expressions one wants to use
  82. #       RE_COMP for system re_comp()/re_exec() expression handler (BSD, SUN)
  83. #       REGCMP for standard system regcmp()/regex expression handler (SVR3/4)
  84. #       REGCOMP fpr Spencer lib use (see Spencer directory)
  85. #               define REGLIB as well!
  86. #REGCOMPT=-DRE_COMP
  87. REGCOMPT=-DREGCMP
  88. #REGCOMPT=-DREGCOMP
  89.  
  90. # We use the regcomp and regexec routines of Spencer
  91. # (Public Domain, used in Pearl and other PD packages).
  92. # set REGLIB for right library use (subdirectory spencer).
  93. #REGLIB=regexp.a
  94. REGLIB=
  95.  
  96. # This is the name of a pager like "more".
  97. # "pg" may be appropriate for SYSV.
  98. DFLT_PAGER=-DDFLT_PAGER=\"less\"
  99. #DFLT_PAGER=-DDFLT_PAGER=\"more\"    # generic && reno
  100.  
  101. # this is the name to save back ups in
  102. SAVE=-DSAVENAME=\"$(NAME).SAVE\"
  103.  
  104. # path to crypt, do not define if you don't have crypt
  105. # most systems
  106. CRYPT=-DCRYPT_PATH=\"/bin/crypt\"
  107. # BSD
  108. #CRYPT=-DCRYPT_PATH=\"/usr/bin/crypt\"
  109. # other people?, Sun OS 4.1.1
  110. #CRYPT=-DCRYPT_PATH=\"/usr/local/bin/crypt\"
  111.  
  112. # If you get errors about fmod being undefined when you try to
  113. # compile, then define NO_FMOD (most likely BSD4.3 and Mt Xinu).
  114. #FMOD=-DNO_FMOD
  115. FMOD=
  116.  
  117. # If your system doesn't have notimeout() in curses define NONOTIMEOUT
  118. NO_NOTIMEOUT=
  119. #NO_NOTIMEOUT=-DNONOTIMEOUT
  120.  
  121. # flags for lint
  122. LINTFLAGS=-abchxv
  123.  
  124. # Format of quick reference guide generated by $(name)qref
  125. # Leave undefined for normal text output.
  126. #QREF_FMT=
  127. QREF_FMT=-DTROFF
  128.  
  129. # *** SPECIAL NOTES ***
  130. # For ULTRIX: define the BSD4.2 section and SIGVOID above
  131. #    tdw@cl.cam.ac.uk tested on Ultrix 3.1C-0
  132. # HP-UX 7.0: Do NOT use -O
  133. #    (known broken, try sc's boolean operators if you wish)
  134. #
  135. # **** SYSV curses bugs... ****
  136. # Try setting IDLOKBAD to fix (with an empty spreadsheet):
  137. #    a) Redrawing the bottom half of the screen when you
  138. #         move between row 9 <-> 10
  139. #    b) the highlighted row labels being trash when you
  140. #        move between row 9 <-> 10
  141. #    c) On an xterm on Esix Rev. D+ from eating lines
  142. #         -goto (or move) a few lines (or more) past the bottom
  143. #         of the screen, goto (or move) to the top line on the
  144. #         screen, move upward and the current line is deleted, the
  145. #         others move up even when they should not, check by
  146. #         noticing the rows become 2, 3, 40, 41, 42... (etc).
  147. #    Known systems/terminfos w/ curses problems:
  148. #    {Esix Rev. D+, AT&T SysV3.2.1}:at386-m,xterm, HP-UX7.0:(not sure)
  149. IDLOKISBAD=-DIDLOKBAD
  150. #IDLOKISBAD=
  151.  
  152. # If you don't have idlok() in your curses define NOIDLOK
  153. NO_IDLOK=
  154. #NO_IDLOK=-DNOIDLOK
  155.  
  156. # If moving right off the screen causes the screen to not redraw
  157. # properly, define RIGHT_CBUG to get around a curses problem on some
  158. # boxes, this forces screen redraws when going right off the screen
  159. RIGHTBUG=
  160. #RIGHTBUG=-DRIGHT_CBUG
  161.  
  162. # IF you have problems w/ your yacc try bison, Berkeley yacc, or
  163. # some other yacc. Some systems don't allow you to
  164. # increase the number of terminals (mostly AT&T), SCO's does though.
  165. #YACC=yacc
  166. # NOTE: Do not use with bison 1.16! Get a new version....
  167. YACC=bison -y
  168.  
  169. # MS-DOS needs y_tab instead of the normal y.tab
  170. #YTAB=y_tab
  171. YTAB=y.tab
  172.  
  173. # Command to use to make temporary copies of some source files.
  174. LN=ln
  175. #LN=ln -s
  176. #LN=cp
  177.  
  178. #### SYSTEM DEFINES ####
  179.  
  180. # Use this for system AIX V3.1
  181. #CFLAGS= -O -DSYSV2 -DCHTYPE=int -DNLS
  182. #LDFLAGS=
  183. #LIB=-lm -lPW -lcurses
  184.  
  185. # Use this for system V.2 (includes: HP-UX 7.05, UNIXPC)
  186. #CFLAGS= -O -DSYSV2 
  187. #LDFLAGS=
  188. #LIB=-lm -lPW -lcurses
  189. # with gcc on a Sequent also use:
  190. #CC=att gcc
  191. #CFLAGS=  -DSYSV2 -g -pipe -traditional
  192.  
  193. # Use this for system V.3
  194. CFLAGS=  -DSYSV3 -O
  195. LDFLAGS= -s
  196. #CFLAGS=  -DSYSV3 -g
  197. #LDFLAGS= -g
  198. LIB=-lm -lcurses -lPW
  199. # with gcc also use:
  200. #CC=gcc
  201. #CFLAGS=  -DSYSV3 -O -pipe -traditional
  202. #CFLAGS=  -DSYSV3 -pipe -traditional
  203. # debugging bison (bison 1.16 is broken)
  204. #CFLAGS=  -DSYSV3 -g -pipe -traditional
  205. #YACC=bison -y -v -t -l
  206.  
  207. # Use this for system V.4
  208. #CFLAGS= -DSYSV3 -O
  209. #CFLAGS= -DSYSV3
  210. #LDFLAGS= -s
  211. #LDFLAGS=
  212. # FIXME: get rid of alloca.o: ar xv /usr/local/lib/libiberty.a alloca.o
  213. #LIB=-lm -lcurses -lgen alloca.o
  214. #LIB=-lm -lcurses -lgen
  215. # with gcc also use:
  216. #CC=gcc
  217. #CFLAGS= -DSYSV3 -O -pipe -Wall
  218.  
  219. # Microport
  220. #CFLAGS= -DSYSV2 -O -DUPORT -Ml
  221. #LDFLAGS=-Ml
  222. #LIB=-lm -lcurses -lPW
  223.  
  224. # Use this for BSD 4.2
  225. #CFLAGS= -O -DBSD42
  226. #LDFLAGS=
  227. #LIB=-lm -lcurses -ltermcap
  228. # with gcc also use:
  229. #CC=gcc
  230.  
  231. # Use this for Sequent boxes
  232. #CC=atscc
  233. #CFLAGS=-O -DBSD42
  234. #LDFLAGS= 
  235. #LIB=-lm -lcurses  -ltermcap
  236. #PSCLIB=-lseq
  237. # with gcc also use:
  238. #CC=gcc
  239. #CFLAGS= -O -DBSD42 -pipe
  240.  
  241. # Use this for BSD 4.3
  242. #CFLAGS= -O -DBSD43
  243. #LDFLAGS=
  244. #LIB=-lm -lcurses -ltermcap
  245.  
  246. # Use this for 386BSD (not tested, taken from comments)
  247. # define RE_COMP and RINT above
  248. #CFLAGS= -O -DBSD43
  249. #LDFLAGS=
  250. #LIB=-lm -lcurses -ltermcap
  251.  
  252. # Use this for SunOS 4.1.  You should also have 'SIMPLE='.
  253. #CC=gcc
  254. #CFLAGS= -g -O -DBSD43 -Wall -DSUNOS4
  255. #LDFLAGS=
  256. #LIB=-lm -lcurses -ltermcap
  257.  
  258. # Use this for SunOS 4.X if you have the System V package installed.
  259. # This will link with the System V curses which is preferable to the
  260. # BSD curses (especially helps scrolling on slow (9600bps or less)
  261. # serial lines).
  262. #
  263. # Be sure to define SIGVOID and RE_COMP above.
  264. #CC=/usr/5bin/cc
  265. #CFLAGS= -O -DSYSV3 
  266. #LDFLAGS=
  267. #LIB=-lm -lcurses 
  268.  
  269. # Use this for system III (XENIX)
  270. #CFLAGS= -O -DSYSIII
  271. #LDFLAGS= -i
  272. #LIB=-lm -lcurses -ltermcap
  273.  
  274. # Use this for XENIX Version 2.3
  275. #CFLAGS= -O -DSYSIII -DXENIX2_3
  276. #LDFLAGS= -i
  277. #LIB=-lm -lcurses -ltermcap
  278.  
  279. # Use this for VENIX
  280. #CFLAGS= -DVENIX -DBSD42 -DV7
  281. #LDFLAGS= -z -i 
  282. #LIB=-lm -lcurses -ltermcap
  283.  
  284. # For SCO Unix V rel. 3.2.0
  285. #       -compile using rcc, cc does not cope with gram.c
  286. #       -edit /usr/include/curses.h, rcc does not understand #error
  287. #       -link: make CC=cc, rcc's loader gets unresolved __cclass, __range
  288. #               (rather strange,?)
  289. #CC=rcc
  290. #CC=cc
  291. #CC=gcc -fstrength-reduce
  292. #SIGVOID=-DSIGVOID
  293. #CFLAGS= -O -DSYSV3
  294. #LDFLAGS=
  295. #LIB=-lm -lcurses -ltinfo -lPW
  296. #YACC=yacc -Sm10000
  297.  
  298. # Use this for SCO Unix 3.2.2 and ODT 1.1
  299. #CC=cc
  300. #CFLAGS= -O -DSYSV3
  301. #LDFLAGS=
  302. #LIB=-lm -lcurses -lPW -lmalloc -lc_s
  303. #YACC=yacc -Sm10000
  304.  
  305. # Use this for MS-DOS, Microsoft C 5.1 and NDMAKE
  306. #CC=cl
  307. #CFLAGS= -AL -O -Fo$*.o
  308. #LDFLAGS=/noi /st:0x4000
  309. #LIB=lcurses
  310. #YACC=bison -y
  311. #
  312. #.SUFFIXES : .o .c
  313. #.c.o:
  314. #    $(CC) $(CFLAGS) -c $*.c
  315.  
  316. # All of the source files
  317. SRC=Makefile cmds.c crypt.c eres.sed format.c gram.y help.c interp.c \
  318.     lex.c matrix.c psc.c range.c sc.c sc.h screen.c sres.sed \
  319.     version.c vi.c vmtbl.c xmalloc.c
  320.  
  321. # The objects
  322. OBJS=cmds.o crypt.o format.o gram.o help.o interp.o lex.o matrix.o \
  323.     range.o sc.o screen.o version.o vi.o vmtbl.o xmalloc.o
  324.  
  325. # The documents in the Archive
  326. DOCS=CHANGES README sc.doc psc.doc tutorial.sc VMS_NOTES torev build.com
  327.  
  328. FEATURES= ${BROKENCURSES} ${CRYPT} ${DFLT_PAGER} ${DOBACKUPS} ${FMOD} \
  329.     ${IDLOKISBAD} ${IEEE_MATH} ${INTERNATIONAL} ${NO_IDLOK} \
  330.     ${NO_NOTIMEOUT} ${REGCOMPT} ${RIGHTBUG} ${RINT} ${SAVE} \
  331.     ${SIGVOID} ${SIMPLE} -DSHOWCURSOR=${SHOWCURSOR}
  332.  
  333. all:    $(name) p$(name) $(name)qref
  334.  
  335. $(name):$(PAR)    $(OBJS)
  336.     $(CC) ${LDFLAGS} ${OBJS} ${LIB} ${REGLIB} -o $(name)
  337.  
  338. # Alternative link for MS-DOS
  339. #$(name):     $(OBJS)
  340. #    link ${LDFLAGS} ${OBJS},$(name),,${LIB};
  341.  
  342. gram.c:    gram.y
  343.     $(YACC) -d gram.y
  344.     mv $(YTAB).c gram.c
  345.  
  346. $(YTAB).h:    gram.y
  347.  
  348. p$(name):    psc.c pvmtbl.o pxmalloc.o
  349.     $(CC) $(CFLAGS) ${FEATURES} ${LDFLAGS} -o p$(name) psc.c pvmtbl.o pxmalloc.o ${PSCLIB}
  350.  
  351. # Alternative link for MS-DOS (NB: MSC 5.1 has no getopt.c)
  352. #p$(name):     psc.o pvmtbl.o pxmalloc.o getopt.o
  353. #    link ${LDFLAGS} psc.o pvmtbl.o pxmalloc.o getopt.o,p$(name);
  354.  
  355. qhelp.c: help.c
  356.     -rm -f qhelp.c
  357.     ${LN} help.c qhelp.c
  358.  
  359. $(name)qref:    qhelp.c version.c
  360.     $(CC) $(CFLAGS) ${FEATURES} $(LDFLAGS) -DQREF $(QREF_FMT) -DSCNAME=\"$(NAME)\" -o $(name)qref qhelp.c
  361.  
  362. # Alternative link for MS-DOS
  363. #$(name)qref:    qhelp.c sc.h
  364. #    $(CC) -AL -O -Foqhelp.o -c -DQREF -DSCNAME=\"$(name)\" qhelp.c
  365. #    link ${LDFLAGS} qhelp.o,$(name)qref;
  366.  
  367. pvmtbl.c: vmtbl.c
  368.     -rm -f pvmtbl.c
  369.     ${LN} vmtbl.c pvmtbl.c
  370.  
  371. pvmtbl.o: sc.h pvmtbl.c
  372.     $(CC) ${CFLAGS} ${FEATURES} -c -DPSC pvmtbl.c
  373.  
  374. pxmalloc.c: xmalloc.c
  375.     -rm -f pxmalloc.c
  376.     ${LN} xmalloc.c pxmalloc.c
  377.  
  378. # Objects
  379.  
  380. cmds.o: cmds.c sc.h
  381.     $(CC) ${CFLAGS} ${FEATURES} -c cmds.c
  382.  
  383. crypt.o: crypt.c sc.h
  384.     $(CC) ${CFLAGS} ${FEATURES} -c crypt.c
  385.  
  386. format.o: format.c
  387.  
  388. help.o: help.c sc.h version.c
  389.     $(CC) ${CFLAGS} ${FEATURES} -c help.c
  390.  
  391. qhelp.o: qhelp.c sc.h version.c
  392.     $(CC) ${CFLAGS} ${FEATURES} -c qhelp.c
  393.  
  394. interp.o:    interp.c sc.h
  395.     $(CC) ${CFLAGS} ${FEATURES} -c interp.c
  396.  
  397. gram.o: sc.h $(YTAB).h gram.c eres.sed sres.sed
  398.     $(CC) ${CFLAGS} ${FEATURES} -c gram.c
  399.     sed < gram.y > experres.h -f eres.sed
  400.     sed < gram.y > statres.h -f sres.sed
  401.  
  402. lex.o:    sc.h $(YTAB).h gram.o lex.c
  403.     $(CC) ${CFLAGS} ${FEATURES} -c lex.c
  404.  
  405. pxmalloc.o: sc.h pxmalloc.c
  406.     $(CC) ${CFLAGS} ${FEATURES} -c -DPSC pxmalloc.c
  407.  
  408. range.o: range.c sc.h
  409.  
  410. sc.o:    sc.h sc.c
  411.     $(CC) ${CFLAGS} ${FEATURES} -c sc.c
  412.  
  413. screen.o:    sc.h screen.c
  414.     $(CC) ${CFLAGS} ${FEATURES} -c screen.c
  415.  
  416. vi.o: vi.c sc.h
  417.  
  418. # other stuff
  419.  
  420. clean:
  421.     rm -f *.o *res.h y.tab.h debug core gram.c $(name).1 \
  422.     p$(name).1 y.output pxmalloc.c pvmtbl.c qhelp.c y_tab.h
  423.  
  424. clobber:
  425.     rm -f *.o *res.h $(YTAB).h $(name) p$(name) debug core gram.c $(name).1 \
  426.     $(name).man p$(name).man p$(name).1 y.output $(name)qref \
  427.     pxmalloc.c pvmtbl.c qhelp.c
  428.  
  429. shar: ${SRC} ${DOCS}
  430.     shar -c -m 64000 -f shar ${DOCS} ${SRC}
  431.  
  432. sshar: ${SRC}
  433.     shar -c -m 1000000 -f shar ${SRC}
  434.  
  435. lint: sc.h sc.c lex.c gram.c interp.c cmds.c crypt.c range.c help.c \
  436.      vi.c version.c xmalloc.c format.c vmtbl.c
  437.     lint ${LINTFLAGS} ${CFLAGS} ${FEATURES} sc.c lex.c gram.c interp.c \
  438.      cmds.c crypt.c range.c help.c vi.c version.c xmalloc.c format.c \
  439.      vmtbl.c -lcurses -lm 
  440.     make lintqref
  441.     make lintpsc
  442.  
  443. lintqref: help.c
  444.     lint ${LINTFLAGS} ${CFLAGS} ${FEATURES} -DQREF $(QREF_FMT) -DSCNAME=\"$(NAME)\" help.c
  445.  
  446. lintpsc: psc.c vmtbl.c
  447.     lint ${LINTFLAGS} ${CFLAGS} ${FEATURES} -DPSC psc.c vmtbl.c ${PSCLIB}
  448.  
  449. inspect: sc.h sc.c lex.c gram.c interp.c cmds.c crypt.c
  450.     /bruces/ianj/bin/i386/inspect -abv -t 8 sc.c lex.c gram.c interp.c \
  451.     cmds.c crypt.c range.c xmalloc.c help.c vi.c
  452.  
  453. print: sc.h gram.y sc.c lex.c interp.c cmds.c crypt.c 
  454.     prc sc.h gram.y sc.c lex.c interp.c cmds.c crypt.c | lpr
  455.  
  456. $(name).1: sc.doc torev
  457.     name=$(name) NAME=$(NAME) LIBDIR=$(LIBDIR) SHOWCURSOR=${SHOWCURSORTAG} sh torev sc.doc >  $(name).1
  458. #    sed -e s/pname/$(name)/g -e s/PNAME/$(NAME)/g \
  459. #       -e s%#LIBDIR#%$(LIBDIR)%g sc.doc >  $(name).1
  460. #    REVISION=`sed -e '/Revision/!D' -e 's/.*$Revision: 6.21 $(
  461. #    sed -e s/pname/$(name)/g -e s/PNAME/$(NAME)/g \
  462. #        -e s%#LIBDIR#%$(LIBDIR)%g \
  463. #        -e 's/#REVISION#/$(REVISION)/' sc.doc >  $(name).1
  464.  
  465. $(name).man:    $(name).1
  466.     nroff -man $(name).1 > $(name).man
  467.  
  468. laser:    $(name).1
  469.     itpf -x -Pim2 -man $(name).1
  470.  
  471. p$(name).1: psc.doc torev
  472.     name=$(name) NAME=$(NAME) LIBDIR=$(LIBDIR) SHOWCURSOR=${SHOWCURSORTAG} sh torev psc.doc > p$(name).1
  473.  
  474. p$(name).man:    p$(name).1
  475.     nroff -man p$(name).1 > p$(name).man
  476.  
  477. install: $(EXDIR)/$(name) $(EXDIR)/$(name)qref $(EXDIR)/p$(name) \
  478.      $(LIBDIR)/tutorial \
  479.      $(MANDIR)/$(name).$(MANEXT) $(MANDIR)/p$(name).$(MANEXT)
  480.  
  481. $(EXDIR)/$(name): $(name)
  482.     cp $(name) $(EXDIR)
  483.     strip $(EXDIR)/$(name)
  484.  
  485. $(EXDIR)/$(name)qref: $(name)qref
  486.     cp $(name)qref $(EXDIR)
  487.     strip $(EXDIR)/$(name)qref
  488.  
  489. $(EXDIR)/p$(name): p$(name)
  490.     cp p$(name) $(EXDIR)
  491.     strip $(EXDIR)/p$(name)
  492.  
  493. $(LIBDIR)/tutorial: tutorial.sc $(LIBDIR)
  494.     cp tutorial.sc $(LIBDIR)/tutorial.$(name)
  495.     chmod $(MANMODE) $(LIBDIR)/tutorial.$(name)
  496.  
  497. $(LIBDIR):
  498.     mkdir $(LIBDIR)
  499.  
  500. $(MANDIR)/$(name).$(MANEXT): $(name).1
  501.     cp $(name).1 $(MANDIR)/$(name).$(MANEXT)
  502.     chmod $(MANMODE) $(MANDIR)/$(name).$(MANEXT)
  503.  
  504. $(MANDIR)/p$(name).$(MANEXT): p$(name).1
  505.     cp p$(name).1 $(MANDIR)/p$(name).$(MANEXT)
  506.     chmod $(MANMODE) $(MANDIR)/p$(name).$(MANEXT)
  507.  
  508. diffs: ${SRC}
  509.     for i in ${DOCS} ${SRC}  ;\
  510.         do \
  511.         rcsdiff -c -r6.18 $$i ;\
  512.         done
  513.  
  514. # THA 10/14/90  Added code to make a patchfile
  515. patchfile: ${SRC} ${DOCS}
  516.     rm -f patchfile
  517.     for i in ${SRC} ${DOCS} ;\
  518.         do \
  519.         #diff -c $$i ../621/$$i >> patchfile \
  520.         #echo $$i \
  521.         diff -c $$i ../621/$$i ; \
  522.         done
  523.  
  524. files:
  525.     @find $(DOCS) $(SRC) -print
  526.