X-Git-Url: https://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2FMakefile.in;h=97b5cc22a5e4d4d272c14fafeec1a56078d77cb2;hb=0f63151c0cfcb3498678c203edb84e6a1d2b57e0;hp=cb91295a90999a057c24f0ce6a9504410e52bfb3;hpb=48d00c87d06add9d250af78db0e12e4f5a518e4b;p=gnus diff --git a/lisp/Makefile.in b/lisp/Makefile.in index cb91295a9..97b5cc22a 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -1,48 +1,84 @@ +prefix = @prefix@ +datarootdir = @datarootdir@ datadir = @datadir@ lispdir = @lispdir@ -prefix = @prefix@ srcdir = @srcdir@ subdir = lisp top_srcdir = @top_srcdir@ EMACS = @EMACS@ -FLAGS = -batch -q -no-site-file -l $(srcdir)/dgnushack.el +FLAGS = @FLAGS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ SHELL = /bin/sh VPATH = @srcdir@ W3DIR = @W3@ URLDIR = @URL@ -EMACS_COMP = URLDIR=$(URLDIR) W3DIR=$(W3DIR) lispdir=$(lispdir) srcdir=$(srcdir) $(EMACS) $(FLAGS) +EMACS_COMP = URLDIR="$(URLDIR)" W3DIR="$(W3DIR)" lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS) -all total: clean-some gnus-load.elc +all total: clean-some gnus-load.el $(EMACS_COMP) -f dgnushack-compile clean-some: - rm -f *.elc gnus-load.el + rm -f *.elc gnus-load.el auto-autoloads.* custom-load.* -warn: clean-some gnus-load.elc +warn: clean-some gnus-load.el $(EMACS_COMP) --eval '(dgnushack-compile t)' 2>&1 | egrep -v "variable G|inhibit-point-motion-hooks|coding-system|temp-results|variable gnus|variable nn|scroll-in-place|deactivate-mark|filladapt-mode|byte-code-function-p|print-quoted|ps-right-header|ps-left-header|article-inhibit|print-escape|ssl-program-arguments|message-log-max" # The "clever" rule is unsafe, since redefined macros are loaded from # .elc files, and not the .el file. -clever some: gnus-load.elc +clever some l: gnus-load.el $(EMACS_COMP) -f dgnushack-compile -install: clever +install: install-el-elc list-installed-shadows + +# This entry will never install .el files if there are no .elc files. +install-el: gnus-load.el + $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)" + $(INSTALL_DATA) gnus-load.el "$(lispdir)/gnus-load.el" + @for p in *.elc; do \ + p=`basename $$p c`; \ + if [ -f "$(srcdir)/$$p" ]; then \ + echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \ + $(INSTALL_DATA) $(srcdir)/$$p "$(lispdir)/$$p"; \ + fi; \ + done + +install-elc: clever rm -f dgnushack.elc - $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir) - for p in *.elc; do \ - echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \ - $(INSTALL_DATA) $$p $(lispdir)/$$p; \ + $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)" + @for p in *.elc; do \ + echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \ + $(INSTALL_DATA) $$p "$(lispdir)/$$p"; \ + done + +install-el-elc: clever + rm -f dgnushack.elc + $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)" + $(INSTALL_DATA) gnus-load.el "$(lispdir)/gnus-load.el" + @for p in *.elc; do \ + q=`basename $$p c`; \ + if [ -f "$(srcdir)/$$q" ]; then \ + echo "$(INSTALL_DATA) $$q \"$(lispdir)/$$q\""; \ + $(INSTALL_DATA) $(srcdir)/$$q "$(lispdir)/$$q"; \ + fi; \ + echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \ + $(INSTALL_DATA) $$p "$(lispdir)/$$p"; \ done -install-el: - $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir) - cd $(srcdir) \ - && for p in *.el; do \ - echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \ - $(INSTALL_DATA) $$p $(lispdir)/$$p; \ +list-installed-shadows: + $(EMACS_COMP) -f dgnushack-find-lisp-shadows + +remove-installed-shadows: + $(EMACS_COMP) -f dgnushack-remove-lisp-shadows + +uninstall: + for p in *.elc; do \ + rm -f "$(lispdir)/$$p"; \ + done + cd $(srcdir); \ + for p in *.el; do \ + rm -f "$(lispdir)/$$p"; \ done tags: @@ -54,13 +90,16 @@ separately: pot: xpot -drgnus -r`cat ./version` *.el > rgnus.pot -gnus-load.elc: +gnus-load.el: $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir) $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir) $(EMACS_COMP) -f dgnushack-make-load -distclean: - rm -f *.orig *.rej *.elc *~ Makefile +clean: + rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el + +distclean: clean + rm -f Makefile Makefile: $(srcdir)/Makefile.in ../config.status cd .. \