home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume4 / uumail3 / part1 / makefile < prev    next >
Makefile  |  1986-11-30  |  3KB  |  117 lines

  1. ####################################################################
  2. # makefile for uumail & uupath
  3. # program to integrate with pathalias created uucpmap databases
  4. # programs originally developed by Jeff Donnelly
  5. # updated to use pathalias database by Stan Barber
  6. # $Header: makefile,v 1.5 86/02/26 03:33:10 sob Exp $
  7. #***************************************************************************
  8. # This work in its current form is Copyright 1986 Stan Barber
  9. # with the exception of opath, gethostname and the original getpath which
  10. # as far as I know are in the Public Domain. This software may be distributed
  11. # freely as long as no profit is made from such distribution and this notice
  12. # is reproducted in whole.
  13. # ***************************************************************************
  14. ###############################################################
  15. .SUFFIXES: .c,v .h,v
  16.  
  17.  
  18.  
  19. LIBS=
  20.  
  21. BINDIR=/usr/lbin
  22.  
  23. UUCPDIR=/usr/lib/uucp
  24.  
  25. LIBDIR=/usr/lib
  26.  
  27. UUMAIL=$(UUCPDIR)/uumail
  28.  
  29. REALUUX=/usr/bin/uux
  30.  
  31. OPTIONS=  -DOPATH -DSYSIII -DDEBUG -DUGLYUUCP -DLOG -DSORTED 
  32.  
  33. CFLAGS= -O -DUUMAIL='"$(UUMAIL)"' -DREALUUX='"$(REALUUX)"' $(OPTIONS)
  34.  
  35. SHELL=/bin/sh
  36. DIST1=README domains palias rmail.c
  37. DIST2= opath.c uumail.c uuconf.h gethostnam.c getpath.c alias.c
  38. DIST3= address.c makefile uux.c
  39. DIST4= uumail.1  opath.3 address.1 Alias.Design Sendmail Binary.Only
  40.  
  41. DIST= $(DIST1) $(DIST2) $(DIST3) $(DIST4)
  42.  
  43.  
  44. .c,v.c:
  45.     co -q $*.c
  46.  
  47. .h,v.h:
  48.     co -q $*.h
  49.  
  50. all: uumail rmail address uux
  51.  
  52. uumail: getpath.o uumail.o gethostnam.o opath.o alias.o
  53.     cc $(CFLAGS) getpath.o uumail.o gethostnam.o opath.o alias.o  -o uumail $(LIBS)
  54.  
  55. address:address.o opath.o getpath.o
  56.     cc $(CFLAGS) address.o opath.o getpath.o -o address $(LIBS)
  57.  
  58. uux: uux.o
  59.     cc $(CFLAGS) uux.o -o $@ $(LIBS)
  60.  
  61. getpath.o: getpath.c uuconf.h
  62.  
  63. uupath.o: uupath.c uuconf.h
  64.  
  65. uumail.o: uumail.c uuconf.h
  66.  
  67. gethostnam.o:gethostnam.c
  68.  
  69. address.o:address.c
  70.  
  71. opath.o:opath.c
  72.  
  73. alias.o:alias.c
  74.  
  75. aliascheck.o:aliascheck.c
  76.  
  77. rmail: rmail.c gethostnam.o
  78.     cc $(CFLAGS) rmail.c gethostnam.o -o rmail $(LIBS)
  79.  
  80. install: uumail address domains palias
  81.     cp address $(BINDIR)
  82.     cp uumail $(UUCPDIR)
  83.     if [ ! -r $(UUCPDIR)/domains ]; then cp domains $(UUCPDIR); fi
  84.     if [ ! -r $(UUCPDIR)/palias ]; then cp palias $(UUCPDIR); fi
  85.     @echo "To install rmail in place of the current rmail, type"
  86.     @echo "make mailer"
  87.     @echo "To intercept uux commands, you need to be sure"
  88.     @echo "that you correctly specified REALUUX in makefile"
  89.     @echo "Then type make fakeuux"
  90.     ln $(UUCPDIR)/uumail $(BINDIR)/uupath
  91.  
  92. mailer: rmail
  93.     make install
  94.     rm -rf /bin/rmail
  95.     cp rmail /bin/rmail
  96.     
  97. fakeuux: uux
  98.     make install
  99.     cp /usr/bin/uux $(REALUUX)
  100.     cp uux /usr/bin/uux
  101.     chmod 6755 /usr/bin/uux
  102.  
  103. lint:
  104.     lint $(CFLAGS) getpath.c uumail.c gethostnam.c opath.c alias.c
  105.  
  106. clean: 
  107.     rm -f *.o uumail address rmail uux
  108.  
  109. doc: uumail.1 uupath.1 address.1 opath.3
  110.     nroff -man uumail.1 >uumail.cat; nroff -man uupath.1 >uupath.cat; nroff -man address.1 >address.cat; nroff -man opath.3 >opath.cat
  111.  
  112. shar: $(DIST)
  113.     shar -v $(DIST1) > dist1.out;shar -v $(DIST2)> dist2.out;shar -v $(DIST3) > dist3.out;shar -v $(DIST4) > dist4.out
  114.  
  115.  
  116.