home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / packages / bbdb / bbdb-Makefile < prev    next >
Encoding:
Makefile  |  1992-09-10  |  4.1 KB  |  126 lines

  1. # Makefile for the Insidious Big Brother Database.
  2. # last change 11-sep-92. jwz.
  3.  
  4. # If you don't have my optimizing byte-compiler, uncomment the following
  5. # lines.  A better idea would be to get it from archive.cis.ohio-state.edu
  6. # in the file pub/gnu/emacs/elisp-archive/packages/bytecomp.tar.Z.  It is
  7. # also included with Lucid GNU Emacs, available from labrea.stanford.edu
  8. # in /pub/gnu/lucid/.
  9. #
  10. # DEFSUBST_SRC=     defsubst.el
  11. # DEFSUBST_BIN=     defsubst.elc
  12. # DEFSUBST_LOAD= -l ./$(DEFSUBST_BIN)
  13. #
  14. # If the VM, GNUS, or MH-E source is not in the standard emacs library 
  15. # (that is, it's not on the load-path by default in a -q emacs) then
  16. # set these variables to point at them.  You need to do this because
  17. # otherwise "require" won't work in the batch emacs.
  18. #
  19. # If you don't have VM, the "VM=" line *must* be commented out.
  20.  
  21. VMDIR       = /wg1/emacs-base/lisp/vm/
  22. # GNUSDIR     = /wg1/emacs-base/lisp/gnus/
  23. # MHEDIR      = /wg1/emacs-base/lisp/
  24.  
  25. # use this line for VM versions 5.31 and earlier
  26. #VM    = -l $(VMDIR)vm-version.elc -l $(VMDIR)vm-vars.elc -l $(VMDIR)vm.elc
  27.  
  28. # use this line for VM versions 5.32 and later
  29. VM    = -l $(VMDIR)vm.elc
  30.  
  31. GNUS    = -l $(GNUSDIR)nntp.elc -l $(GNUSDIR)gnus.elc
  32. MHE    = -l $(MHEDIR)mh-e.elc
  33.  
  34. EMACS=    emacs
  35. TAR=    gnutar
  36.  
  37. # You shouldn't need to change anything after this point.
  38.  
  39. .SUFFIXES: .elc .el .tar .Z .uu
  40.  
  41. DEPSRCS=    bbdb-com.el  bbdb-hooks.el  bbdb-gnus.el  bbdb-mhe.el \
  42.         bbdb-rmail.el  bbdb-vm.el bbdb-415-510.el bbdb-213-310.el \
  43.         bbdb-ftp.el  bbdb-whois.el  bbdb-lucid.el
  44. DEPBINS=    bbdb-com.elc bbdb-hooks.elc bbdb-gnus.elc bbdb-mhe.elc \
  45.         bbdb-rmail.elc bbdb-vm.elc bbdb-415-510.elc bbdb-213-310.elc \
  46.         bbdb-ftp.elc bbdb-whois.elc bbdb-lucid.elc
  47. SRCS=        $(DEFSUBST_SRC) bbdb.el  $(DEPSRCS) mail-abbrevs.el \
  48.         mail-extr.el
  49. BINS=        $(DEFSUBST_BIN) bbdb.elc $(DEPBINS) mail-abbrevs.elc \
  50.         mail-extr.elc
  51.  
  52. syntax:
  53.     @echo "" ;\
  54.     echo "*** make one or more of: rmail vm mhe gnus all bbdb" ;\
  55.     echo "" ;\
  56.     exit 1
  57.  
  58. all:    rmail gnus vm mhe
  59.  
  60. defsubst.elc: defsubst.el
  61.     $(EMACS) -batch -q -f batch-byte-compile $(@:.elc=.el)
  62.  
  63. mail-extr.elc: mail-extr.el
  64.     $(EMACS) -batch -q -f batch-byte-compile $(@:.elc=.el)
  65.  
  66. mail-abbrevs.elc: mail-abbrevs.el
  67.     $(EMACS) -batch -q -f batch-byte-compile $(@:.elc=.el)
  68.  
  69. bytecomp-runtime.elc new-bytecomp.elc byte-optimize.elc:
  70.     $(EMACS) -batch -q -l bytecomp-runtime.el -l new-bytecomp.el -l byte-optimize.el -f batch-byte-compile $(@:.elc=.el)
  71.  
  72. bbdb.elc:    $(DEFSUBST_BIN) bbdb.el
  73.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -f batch-byte-compile ./bbdb.el
  74.  
  75.  
  76. #$(DEPBINS):
  77. #    $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc $(OLOADS) -f batch-byte-compile $(@:.elc=.el)
  78.  
  79.  
  80. bbdb-com.elc:    bbdb.elc bbdb-com.el
  81.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc -f batch-byte-compile $(@:.elc=.el)
  82.  
  83. bbdb-gnus.elc:    bbdb.elc bbdb-gnus.el
  84.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc $(GNUS) -f batch-byte-compile $(@:.elc=.el)
  85. bbdb-mhe.elc:    bbdb.elc bbdb-mhe.el
  86.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc $(MHE) -f batch-byte-compile $(@:.elc=.el)
  87. bbdb-rmail.elc:    bbdb.elc bbdb-rmail.el
  88.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc $(RMAIL) -f batch-byte-compile $(@:.elc=.el)
  89. bbdb-vm.elc:    bbdb.elc bbdb-vm.el
  90.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc $(VM) -f batch-byte-compile $(@:.elc=.el)
  91.  
  92. # bbdb-hooks uses VM macros if it can find VM.  If you don't have VM,
  93. # then the $(VM) makefile variable should be undefined or empty.
  94. bbdb-hooks.elc:  bbdb.elc bbdb-hooks.el
  95.     $(EMACS) -batch -q $(DEFSUBST_LOAD) -l ./bbdb.elc $(VM) -f batch-byte-compile $(@:.elc=.el)
  96.  
  97.  
  98. bbdb:    bbdb.elc bbdb-com.elc bbdb-hooks.elc mail-extr.elc mail-abbrevs.elc
  99. rmail:    bbdb bbdb-rmail.elc
  100. vm:    bbdb bbdb-vm.elc
  101. mhe:    bbdb bbdb-mhe.elc
  102. gnus:    bbdb bbdb-gnus.elc
  103. # aliases
  104. mh:    mhe
  105. mh-e:    mhe
  106.  
  107. clean:
  108.     $(RM) bbdb.elc bbdb-*.elc $(DEFSUBST_BIN)
  109.  
  110. tarclean:
  111.     $(RM) bbdb.tar bbdb.tar.Z bbdb.tar.Z.uu
  112.  
  113. TARFILES=    bbdb-Makefile bbdb.texinfo bbdb.el $(DEPSRCS) \
  114.         defsubst.el mail-abbrevs.el mail-extr.el
  115.  
  116. bbdb.tar:    $(TARFILES)
  117.     $(RM) $@ ; $(TAR) -chf bbdb.tar $(TARFILES)
  118.  
  119. bbdb.tar.Z:    $(TARFILES)
  120.     $(RM) $(@:.Z=) $@ ;\
  121.     $(TAR) -chf $(@:.Z=) $(TARFILES) ;\
  122.     compress $(@:.Z=)
  123.  
  124. bbdb.tar.Z.uu:    bbdb.tar.Z
  125.     $(RM) $@ ; uuencode $@ < $? > $@
  126.