home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume17 / pps / Makefile < prev    next >
Makefile  |  1989-02-06  |  2KB  |  89 lines

  1. # $Header: Makefile,v 0.0 88/06/22 05:21:37 on Rel $
  2. # Edit the three lines below to suit your system conventions
  3. BIN = .
  4. LIB = .
  5. CHAP = n
  6. MAN = /usr/man/man$(CHAP)
  7.  
  8. LANG = awk c csh lisp mail ps text sh
  9. AUX = prc
  10. PRO = *.pro
  11. FRONT = pps slide
  12. MANS = pps.$(CHAP) slide.$(CHAP)
  13. SOURCES = READ_ME *.man Makefile *.h *.c *.l *.sh *.pro fonts
  14. AR = shar
  15. ARFLG = -a
  16.  
  17. .SUFFIXES: .$(CHAP) .man
  18.  
  19. .man.$(CHAP):
  20.     echo .ds lb $(LIB) > $@
  21.     echo $(LANG) | sed 's/ /,/g;s/^/.ds lg /' >> $@ 
  22.     cat $*.man >> $@
  23.  
  24.  
  25. all: $(LANG) $(AUX) $(FRONT) $(MANS)
  26.  
  27.  
  28. awk: awk.o lind.o
  29.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  30.  
  31. c: c.o lind.o
  32.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  33.  
  34. csh: csh.o lind.o
  35.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  36.  
  37. mail: mail.o lind.o
  38.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  39.  
  40. ps: ps.o lind.o
  41.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  42.  
  43. sh: sh.o lind.o
  44.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  45.  
  46. text: text.o lind.o
  47.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  48.  
  49. lisp: lisp.o lind.o
  50.     @echo warning: $@ has no built-ins -- see comment.
  51.     $(CC) $(CFLAGS) -o $@ $@.o lind.o -ll
  52.  
  53. awk.o c.o csh.o sh.o lisp.o: pps.h
  54.  
  55.  
  56. pps: pps.sh
  57.     sed 's|^lib=.*|lib=$(LIB)|' pps.sh > $@
  58.     chmod 755 $@
  59.  
  60. slide: slide.sh
  61.     sed 's|^lib=.*|lib=$(LIB)|' slide.sh > $@
  62.     chmod 755 $@
  63.  
  64.  
  65. prc: prc.c
  66.     $(CC) $(CFLAGS) -o $@ prc.c
  67.  
  68.  
  69. install: $(LIB) $(BIN) $(MAN)
  70.  
  71. $(LIB): $(LANG) $(AUX) $(PRO) fonts
  72.     -(cd $@; rm -f $(PRO) fonts) || mkdir $@
  73.     cp $(LANG) $(AUX) $(PRO) fonts $@
  74.  
  75. $(BIN): $(FRONT)
  76.     cp $(FRONT) $@
  77.  
  78. $(MAN): $(MANS)
  79.     cp $(MANS) $@
  80.     man pps > /dev/null
  81.     man slide > /dev/null
  82.  
  83.  
  84. pps.$(AR): $(SOURCES)
  85.     $(AR) $(ARFLG) $(SOURCES) > $@
  86.  
  87. clean:
  88.     rm -f $(FRONT) $(LANG) $(AUX) $(MANS) *.o pps.$(AR)
  89.