home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2843 / Makefile < prev    next >
Encoding:
Makefile  |  1991-02-24  |  2.3 KB  |  86 lines

  1. # where do you want to place the binaries and scripts?
  2. # the programs are: et cfc cfdiff cfstrip
  3. BINDIR=`pwd`/bin
  4.  
  5. #where is your original sendmail file?
  6. #ORIGINAL=/etc/sendmail.cf
  7. ORIGINAL=/usr/lib/sendmail.cf
  8. #ORIGINAL=/usr/lib/sendmail.main.cf
  9. #ORIGINAL=/usr/lib/sendmail.subsidiary.cf
  10.  
  11. # What arguments to cfc do you want for cfc (see the file CONVERT)
  12. CONVERT_FLAGS=-s -CV
  13.  
  14. #what extenstion do you want for the manual pages?
  15. #EXT=1
  16. #EXT=l
  17. EXT=n
  18. SHELL=/bin/sh
  19.  
  20.  
  21. all:
  22.     cd cfc; ${MAKE} ${FLAGS}  $@
  23.     cd src; ${MAKE} ${FLAGS}  $@
  24.     cd utils; ${MAKE} ${FLAGS}  $@
  25.     touch all
  26.     
  27. install:
  28.     test -d ${BINDIR} || mkdir ${BINDIR}
  29. #    cd cf; make $(MFLAGS) $@
  30.     BD=${BINDIR};cd cfc; ${MAKE} ${MFLAGS} BINDIR=$$BD $@
  31.     BD=${BINDIR};cd src; ${MAKE} ${MFLAGS} BINDIR=$$BD $@
  32.     BD=${BINDIR};cd utils; ${MAKE} ${MFLAGS} BINDIR=$$BD $@
  33.     cd doc; ${MAKE} ${MFLAGS} EXT=${EXT} $@
  34.  
  35.  
  36.  
  37. convert:    ${ORIGINAL} all 
  38.         ${BINDIR}/cfc ${CONVERT_FLAGS} < ${ORIGINAL} >sendmail.ease
  39.  
  40. test_conversion:    ${ORIGINAL} sendmail.cf
  41.     PATH=${BINDIR}:$$PATH;export PATH;cfdiff ${ORIGINAL} sendmail.cf
  42.  
  43. clean:
  44. #    cd cf; make $(MFLAGS) $@
  45.     cd src; ${MAKE} ${MFLAGS} $@
  46.     cd cfc; ${MAKE} ${MFLAGS} $@
  47.     cd utils; ${MAKE} ${MFLAGS} $@
  48.  
  49. debug:    all sendmail.ease
  50.     BD=${BINDIR};cd debug; ${MAKE} ${MFLAGS} BINDIR=$$BD $@
  51. sendmail.ease:
  52.     @ echo where is the sendmail.ease file you want to debug?    
  53.  
  54. sendmail.cf: all sendmail.ease
  55.     ${BINDIR}/et <sendmail.ease >sendmail.cf
  56.  
  57. hostname.ease: SCCS/s.hostname.ease
  58.     sccs get hostname.ease
  59.  
  60. hostname.cf:    hostname.ease
  61.     et -C <hostname.ease >hostname.cf
  62.  
  63. install_hostname: hostname.cf
  64.     @sccs check
  65.     /bin/mv ${ORIGINAL} ${ORIGINAL}.old
  66.     /bin/cp hostname.cf ${ORIGINAL}
  67.     build-new-aliases
  68.  
  69. mail: Part01 Part02 Part03 Part04 Part05 Part06
  70.     @ WHO=${WHO} && \
  71.     [ $${WHO:-missing} = missing ] && \
  72.     echo USAGE:  make mail WHO=address || \
  73.     (( mail -s "Ease 3.0: Part 1 of 6" $${WHO} <Part01) ;\
  74.      ( mail -s "Ease 3.0: Part 2 of 6" $${WHO} <Part02) ;\
  75.      ( mail -s "Ease 3.0: Part 3 of 6" $${WHO} <Part03) ;\
  76.      ( mail -s "Ease 3.0: Part 4 of 6" $${WHO} <Part04) ;\
  77.      ( mail -s "Ease 3.0: Part 5 of 6" $${WHO} <Part05) ;\
  78.      ( mail -s "Ease 3.0: Part 6 of 6" $${WHO} <Part06; ))
  79.  
  80. depend lint print:
  81.     -for dir in *; do [ -f $$dir/[Mm]akefile ] && (cd $$dir; make $(MFLAGS) $@); done
  82.  
  83. shar:
  84.     dirname=`basename $$PWD`; cd ..; shar `find $$dirname -name RCS -prune -o -type f -print` >/tmp/ease.shar
  85.  
  86.