home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1581 / Makefile < prev   
Encoding:
Makefile  |  1990-12-28  |  1.6 KB  |  61 lines

  1. # Makefile for the Anonymous Contact Service software
  2. #
  3. # Dependencies:
  4. #    all    builds the entire ACS software suite
  5. #    clean    removes .o files, core files, and clobbers the mailer directory
  6. #    clobber    removes all binaries in addition to cleaning
  7. #    newacs    destroys the existing aliases data base (VERY DANGEROUS)
  8. #
  9. #    To build the ACS software, type "make all" followed by
  10. #    "make clean". You should be root when you build it to get
  11. #    the permissions right.
  12. #
  13. #    To restart the system after offline testing, type "make newacs",
  14. #    NEVER EVER run "make newacs" in a live system. It destroys the
  15. #    aliases database and the aliases-index file.
  16. #
  17. # Dave Mack
  18. # csu@alembic.ACS.COM
  19. #
  20.  
  21. CFLAGS = -O
  22.  
  23. BINARIES = anon-post anon-reply anon-ping acsmail
  24.  
  25. all: $(BINARIES)
  26.     chmod a+x addalias config.perl fixit listr2a rmbyaddr rmbyalias \
  27.     nextalias unspool
  28.     mkdir spool repair
  29.     chmod go-rwx spool repair
  30.  
  31. anon-post: anon-post.o
  32.     cc -o anon-post anon-post.o
  33.     chmod u+s anon-post
  34.  
  35. anon-ping: anon-ping.o
  36.     cc -o anon-ping anon-ping.o
  37.     chmod u+s anon-ping
  38.  
  39. anon-reply: anon-reply.o
  40.     cc -o anon-reply anon-reply.o
  41.     chmod u+s anon-reply
  42.  
  43. acsmail:
  44.     (cd mailer; make -f Makefile.acs install; make -f Makefile.acs clobber)
  45.  
  46. clean:
  47.     rm -f *.o core
  48.     (cd mailer; make -f Makefile.acs clobber)
  49.  
  50. clobber: clean
  51.     rm -f $(BINARIES)
  52.  
  53. newacs:
  54.     @echo "This will destroy the existing aliases database."
  55.     @echo "If this is not what you want to do, you have 10"
  56.     @echo "seconds to kill this process."
  57.     sleep 10
  58.     @echo "Removing real2alias database and alias-index
  59.     rm -f real2alias.* alias-index
  60.     @echo "You need to edit /usr/lib/aliases by hand and run newaliases"
  61.