home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / nntp1.5 / part01 / Makefile next >
Encoding:
Makefile  |  1988-04-18  |  1.5 KB  |  74 lines

  1.  
  2. #
  3. # Makefile for NNTP intstallation
  4. #
  5.  
  6. DISTFILES = Makefile README CHANGES rrnpatches
  7.  
  8. DISTDIRS = common doc inews server support xfer xmit
  9.  
  10. DIST = $(DISTFILES) $(DISTDIRS)
  11.  
  12. # Make this either "server" or "client" depending on whether
  13. # you want this package compiled to be a server or a client
  14. # (You can always say "make server" or "make client" if you want.
  15.  
  16. TYPE = 
  17.  
  18. all: make_$(TYPE)
  19.  
  20. make_:
  21.     @ echo "If you want to make a server version or a client version,"
  22.     @ echo "type \"make server\" or \"make client\" respectively."
  23.     @ echo "See README for details."
  24.  
  25. make_server: /nowhere
  26.     cd server; make
  27.     cd support; make
  28.     cd doc; make
  29.     cd xmit; make
  30.  
  31. server: make_server
  32.  
  33. make_client: /nowhere
  34.     cd inews; make
  35.     cd doc; make
  36.  
  37. client: make_client
  38.  
  39. install: install_$(TYPE)
  40.  
  41. install_:
  42.     @ echo "If you want to install a server version or"
  43.     @ echo "a client version, type \"make install_server\""
  44.     @ echo "or \"make install_client\" respectively."
  45.     @ echo "See README for more details."
  46.  
  47. install_server:
  48.     cd server; make install
  49.     cd support; make install
  50.     cd doc; make install
  51.  
  52. install_client:
  53.     cd inews; make install
  54.     cd doc; make install
  55.  
  56. clean:
  57.     for i in $(DISTDIRS); do cd $$i; make clean; cd ..; done
  58.  
  59. check:
  60.     for i in $(DISTDIRS); do cd $$i; make check; cd ..; done
  61.  
  62. distrib: check
  63.     mkdir ../nntp.dist
  64.     cp -rp $(DIST) ../nntp.dist
  65.     cd ../nntp.dist; for i in $(DISTDIRS); do cd $$i; make distrib; cd ..; done
  66.  
  67. rpt: /nowhere
  68.     tar cf rrnpatches.tar rrnpatches; compress rrnpatches.tar
  69.  
  70. server: /nowhere
  71. client: /nowhere
  72.  
  73. /nowhere: ;
  74.