home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / VIS / RTR / VIS. < prev   
Encoding:
Text File  |  1998-07-24  |  2.2 KB  |  76 lines

  1. *** Makefile.orig    Fri Nov 27 08:24:05 1992
  2. --- Makefile    Fri Nov 27 08:32:48 1992
  3. ***************
  4. *** 6,14 ****
  5.   ROFF        = nroff
  6.   RFLAGS        = -man
  7.   LDFLAGS        = -s
  8. ! DESTBIN        = ${HOME}
  9. ! DESTMAN        = ${HOME}
  10. ! DESTCAT        = ${HOME}
  11.   DESTOWN        = root
  12.   DESTGRP        = staff
  13.   SHELL        = /bin/sh
  14. --- 6,14 ----
  15.   ROFF        = nroff
  16.   RFLAGS        = -man
  17.   LDFLAGS        = -s
  18. ! DESTBIN        = <installdir>/bin
  19. ! DESTMAN        = <installsharedir>/man/man1
  20. ! DESTCAT        = <installsharedir>/man/cat1
  21.   DESTOWN        = root
  22.   DESTGRP        = staff
  23.   SHELL        = /bin/sh
  24. ***************
  25. *** 55,72 ****
  26.   install:    $(PROGRAM) $(CATPAGES)
  27.           cp $(PROGRAM) $(DESTBIN)
  28.           chmod 755 $(DESTBIN)/$(PROGRAM)
  29. -         chown $(DESTOWN) $(DESTBIN)/$(PROGRAM)
  30. -         chgrp $(DESTGRP) $(DESTBIN)/$(PROGRAM)
  31.           -for manpage in $(MANPAGES); do \
  32.               basepage=`basename $$manpage .man`; \
  33. !             cp $$basepage.man $(DESTMAN)/$$basepage.l; \
  34. !             chmod 644 $(DESTMAN)/$$basepage.l; \
  35. !             chown $(DESTOWN) $(DESTMAN)/$$basepage.l; \
  36. !             chgrp $(DESTGRP) $(DESTMAN)/$$basepage.l; \
  37. !             cp $$basepage.cat $(DESTCAT)/$$basepage.l; \
  38. !             chmod 644 $(DESTCAT)/$$basepage.l; \
  39. !             chown $(DESTOWN) $(DESTCAT)/$$basepage.l; \
  40. !             chgrp $(DESTGRP) $(DESTCAT)/$$basepage.l; \
  41.           done
  42.   
  43.   # Remove the program and its formatted manual pages from their
  44. --- 55,66 ----
  45.   install:    $(PROGRAM) $(CATPAGES)
  46.           cp $(PROGRAM) $(DESTBIN)
  47.           chmod 755 $(DESTBIN)/$(PROGRAM)
  48.           -for manpage in $(MANPAGES); do \
  49.               basepage=`basename $$manpage .man`; \
  50. !             cp $$basepage.man $(DESTMAN)/$$basepage.1; \
  51. !             chmod 644 $(DESTMAN)/$$basepage.1; \
  52. !             cp $$basepage.cat $(DESTCAT)/$$basepage.1; \
  53. !             chmod 644 $(DESTCAT)/$$basepage.1; \
  54.           done
  55.   
  56.   # Remove the program and its formatted manual pages from their
  57. ***************
  58. *** 75,82 ****
  59.           rm -f $(DESTBIN)/$(PROGRAM)
  60.           -for manpage in $(MANPAGES); do \
  61.               basepage=`basename $$manpage .man`; \
  62. !             rm -f $(DESTMAN)/$$basepage.l; \
  63. !             rm -f $(DESTCAT)/$$basepage.l; \
  64.           done
  65.   
  66.   # Remove all target and intermediate files.
  67. --- 69,76 ----
  68.           rm -f $(DESTBIN)/$(PROGRAM)
  69.           -for manpage in $(MANPAGES); do \
  70.               basepage=`basename $$manpage .man`; \
  71. !             rm -f $(DESTMAN)/$$basepage.1; \
  72. !             rm -f $(DESTCAT)/$$basepage.1; \
  73.           done
  74.   
  75.   # Remove all target and intermediate files.
  76.