1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
# Main Makefile for BBDB
@SET_MAKE@
TAR = @TAR@
COMPRESS = @COMPRESS@
COMPEXT = @COMPEXT@
RM = @RM@
LN_S = @LN_S@
ETAGS = @ETAGS@
EMACS_PROG = @EMACS_PROG@ -no-site-file -no-init-file
SUBDIRS = lisp texinfo tex utils
TARFILES = ChangeLog INSTALL Makefile README \
aclocal.m4 configure configure.ac install-sh Makefile.in \
bits lisp misc tex texinfo utils
all: Makefile bbdb info @BBDB_RMAIL@ @BBDB_VM@ @BBDB_MHE@ @BBDB_GNUS@
Makefile: configure Makefile.in
@echo "Makefile.in or configure has changed. Please rerun configure!"
exit 1
configure: configure.ac
@echo "configure.ac has changed. Please rerun autoconf!"
exit 1
bbdb:
cd lisp; $(MAKE) bbdb
rmail:
cd lisp; $(MAKE) rmail
vm:
cd lisp; $(MAKE) vm
mhe:
cd lisp; $(MAKE) mhe
gnus:
cd lisp; $(MAKE) gnus
info:
cd texinfo; $(MAKE) info
autoloads:
cd lisp; $(MAKE) autoloads
autoloadsc:
cd lisp; $(MAKE) autoloadsc
install-pkg:
@for i in $(SUBDIRS) ; do \
( cd $$i && $(MAKE) install-pkg ) ; \
done
uninstall-pkg:
@for i in $(SUBDIRS) ; do \
( cd $$i && $(MAKE) uninstall-pkg ) ; \
done
clean:
cd lisp; $(MAKE) clean
cd texinfo; $(MAKE) clean
distclean:
@for i in $(SUBDIRS) ; do \
( cd $$i && $(MAKE) distclean ) ; \
done
-$(RM) config.cache config.status config.log
-$(RM) *.tar.gz
-$(RM) .#*
# Backward compatibility
reallyclean: distclean
cvsclean:
@for i in $(SUBDIRS) ; do \
( cd $$i && $(MAKE) cvsclean ) ; \
done
-$(RM) Makefile configure
# tarball
tar: $(TARFILES)
@if test "x$(TAR)" = "x" ; then \
echo "Sorry, no \`tar' program available." ; \
else \
name=`sed -n 's/^(defconst bbdb-version "\([0-9]\.[0-9][0-9]*\).*/bbdb-\1/p' lisp/bbdb.el` ; \
$(RM) $${name} ; @LN_S@ . $${name} ; \
if test "x$(COMPRESS)" = "x" ; then \
echo "Sorry, no compression program available." ; \
echo "The tarball will not be compressed." ; \
echo "creating tar file $${name}.tar..." ; \
$(TAR) --exclude=CVS --exclude=testing --exclude=".*" \
-vchf $${name}.tar \
`echo $(TARFILES) | sed "s|^|$${name}/|g; s| | $${name}/|g"` ; \
else \
echo "creating tar file $${name}.tar.$(COMPEXT)..." ; \
$(TAR) --exclude=CVS --exclude=".*" -vchf - `echo $(TARFILES) \
| sed "s|^|$${name}/|g; s| | $${name}/|g"` \
| $(COMPRESS) > $${name}.tar.$(COMPEXT) ; \
fi ; \
$(RM) $${name} ; \
fi
dist: distclean info autoloads tar
TAGS: tags
tags:
@if test "x$(ETAGS)" = "x" ; then \
echo "Sorry, no \`etags' program available." ; \
else \
$(ETAGS) */*.el ; \
fi
|