home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / readnews / makefile < prev    next >
Makefile  |  1994-11-27  |  702b  |  40 lines

  1. # =()<@<INCLUDE>@>()=
  2. .include "../include/config.make"
  3.  
  4. BINS=readnews
  5. PROGS=$(BINS) checknews postnews
  6. DEST=$(NEWSBIN)/inject
  7. CTL=readnews.help readnews.ctl postdefltgroup
  8. ALL=$(PROGS) $(CTL)
  9.  
  10. all:    $(ALL)
  11.     $(MX) $(PROGS)
  12.  
  13. setup:    $(CTL)
  14.     $(TO) -n -e $(NEWSCTL) $(CTL)
  15.  
  16. install:    $(PROGS)
  17.     $(MKDIR) $(DEST)
  18.     $(TO) $(DEST) postnews
  19.  
  20. readpostcheck:    $(PROGS)
  21.     $(MKDIR) $(UIBIN)
  22.     $(TO) $(UIBIN) $(PROGS)
  23.  
  24. cmp:    $(ALL)
  25.     @$(IN) $(DEST) postnews
  26.     @$(IN) -i -e $(NEWSCTL) $(CTL)
  27.     @$(IN) -x $(UIBIN) $(PROGS)
  28.  
  29. PARTS=header.o readnews.o funcs.o active.o newsrc.o
  30. $(PARTS):    defs.h
  31. $(BINS):    $(LIB)
  32.  
  33. readnews:    $(PARTS)
  34.     $(CC) $(LDFLAGS) $(PARTS) $(LIBS) -o $@
  35.  
  36. r rclean:    $(ALL)
  37.  
  38. clean:
  39.     rm -f *.o core $(BINS) .newsrc
  40.