home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff319.lzh / CNewsSrc / cnews.orig.lzh / conf / Makefile < prev    next >
Makefile  |  1989-06-27  |  3KB  |  97 lines

  1. # =()<NEWSARTS = @<NEWSARTS>@>()=
  2. NEWSARTS = /usr/spool/news
  3. # =()<NEWSBIN = @<NEWSBIN>@>()=
  4. NEWSBIN = /usr/lib/newsbin
  5. # =()<NEWSCTL = @<NEWSCTL>@>()=
  6. NEWSCTL = /usr/lib/news
  7. # workaround for System V make bug
  8. SHELL = /bin/sh
  9. NEWSUSER=news
  10. NEWSGROUP=news
  11. COPTS = -O
  12. CFLAGS = $(COPTS) -I../include '-DNEWSUSER="$(NEWSUSER)"' '-DNEWSGROUP="$(NEWSG
  13. OUP)"'
  14. LIBS = ../libcnews.a
  15. LIBDIRS = libbig libbsd42 libc libcnews libfake \
  16.     libsmall libstdio libusg libv7 libv8
  17. DIRS = batch conf expire h hfake input $(LIBDIRS) misc relay rna
  18.  
  19. PGMS = spacefor queuelen
  20.  
  21. all:    $(PGMS)
  22.  
  23. bininstall:    $(PGMS)
  24.     chmod +x $(PGMS)
  25.     cp $(PGMS) $(NEWSBIN)
  26.     -if test -r hostname ; then chmod +x hostname ; cp hostname $(NEWSBIN) ; fi
  27.     : and build takes care of setnewsids if needed
  28.  
  29. newsinstall:
  30.     : build stuff does the real work
  31.  
  32. substs:    subst.hs subst.gc substitutions subst
  33.     chmod +x subst
  34.     : too late for h and hfake, include has already been built
  35.     -egrep '^(h|hfake)/' subst.hs subst.gc >junk
  36.     test ! -s junk
  37.     rm -f junk
  38.     ./subst -f substitutions `sed 's;^;../;' subst.hs subst.gc`
  39.  
  40. spacefors:    spacefor.sysv spacefor.v7 spacefor.sgi spacefor.bsd spacefor.null
  41.  
  42. spacefor.bsd:    spacefor.proto Makefile
  43.     cp spacefor.proto $@
  44.  
  45. spacefor.v7:    spacefor.proto Makefile
  46.     sed '/dfunit=/s/1024/512/;/nr = 2/s//nr = 1/;/nf = 4/s//nf = 2/;/stupid/d' spa
  47. efor.proto >$@
  48.  
  49. spacefor.sysv:    spacefor.proto Makefile
  50.     sed '/dfunit=/s/1024/512/;/awk/s~|~| sed "s/.*:/: :/" |~;/nf = 4/s//nf = 3/;/s
  51. upid/s/4BSD/System V/' spacefor.proto >$@
  52.  
  53. spacefor.sgi:    spacefor.proto Makefile
  54.     sed '/dfunit=/s/1024/512/;/nf = 4/s//nf = 5/;/stupid/s/4BSD/SGI/' spacefor.pro
  55. o >$@
  56.  
  57. spacefor.null:    Makefile
  58.     echo '#! /bin/sh' >$@
  59.     echo 'echo 100' >>$@
  60.  
  61. queuelen.hdb:
  62.     : okay
  63.  
  64. queuelen.sub:
  65.     : okay
  66.  
  67. queuelen.null:
  68.     echo '#! /bin/sh' >$@
  69.     echo 'echo 0' >>$@
  70.  
  71. setnewsids:    setnewsids.o $(LIBS)
  72.     $(CC) $(CFLAGS) setnewsids.o $(LIBS) -o $@
  73.  
  74. ../ranlibed:    ../libcnews.a
  75.     ranlib ../libcnews.a
  76.     touch ../ranlibed
  77.  
  78. clean:
  79.     rm -f spacefor.sysv spacefor.v7 spacefor.null queuelen.null
  80.     rm -f spacefor.sgi
  81.     rm -f allowed config mailname organization server whoami hostname errlog
  82.     rm -f substitutions history history.pag history.dir active localgroups
  83.     rm -f log mailpaths sys cron rc setnewsids setnewsids.o spacefor.bsd
  84.     rm -f replyusepath spacefor queuelen junk
  85.  
  86. gclean:
  87.     rm -f ../libcnews.a ../ranlibed
  88.     rm -rf ../include
  89.     for d in $(DIRS) ; do cd ../$$d ; make clean ; done
  90.  
  91. spotless:    gclean
  92.     rm -f again.root doit.bin doit.news doit.root
  93.  
  94. lclean:
  95.     rm -f ../ranlibed
  96.     for d in $(LIBDIRS) ; do cd ../$$d ; make clean ; done
  97.