X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=blobdiff_plain;f=lisp%2FMakefile.in;h=4dfe2f077295c269deaf99dc0ff07be64b10d97c;hp=df6acc9e2a4962944c84cef1092c9f0f97b2af31;hb=68f412fcdd68a5d0c322fd69a5e4cf07c1209e2b;hpb=c45e1aeef454d4ff181011e4572fbe0e2de4dbf4 diff --git a/lisp/Makefile.in b/lisp/Makefile.in index df6acc9e2..4dfe2f077 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -1,6 +1,7 @@ +prefix = @prefix@ +datarootdir = @datarootdir@ datadir = @datadir@ lispdir = @lispdir@ -prefix = @prefix@ srcdir = @srcdir@ subdir = lisp top_srcdir = @top_srcdir@ @@ -11,19 +12,25 @@ 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 = lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS) +GZIP_PROG = @GZIP_PROG@ +COMPRESS_INSTALL = @COMPRESS_INSTALL@ -all total: clean-some gnus-load.el +all total: clean-some + $(MAKE) gnus-load.el $(EMACS_COMP) -f dgnushack-compile clean-some: rm -f *.elc gnus-load.el auto-autoloads.* custom-load.* -warn: clean-some gnus-load.el +warn: clean-some + $(MAKE) 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" +fail-on-warning: clean-some + $(MAKE) gnus-load.el + $(EMACS_COMP) -f dgnushack-compile-error-on-warn + # The "clever" rule is unsafe, since redefined macros are loaded from # .elc files, and not the .el file. clever some l: gnus-load.el @@ -31,40 +38,55 @@ clever some l: gnus-load.el install: install-el-elc list-installed-shadows +# Test rules +check: test-registry test-nntp + +test-registry: + $(EMACS) $(FLAGS) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit + +test-nntp: + $(EMACS) $(FLAGS) -l ert -l tests/gnustest-nntp.el -f ert-run-tests-batch-and-exit + # This entry will never install .el files if there are no .elc files. install-el: gnus-load.el - $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir) - echo " $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el" - $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el - for p in *.elc; do \ + $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)" + $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(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; \ + echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \ + $(INSTALL_DATA) $(srcdir)/$$p "$(DESTDIR)$(lispdir)/$$p"; \ + if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \ + rm -f "$(DESTDIR)$(lispdir)/$$p.gz"; \ + $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$p"; \ + fi; \ 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 "$(DESTDIR)$(lispdir)" + @for p in *.elc; do \ + echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \ + $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \ done install-el-elc: clever rm -f dgnushack.elc - $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir) - echo " $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el" - $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el - for p in *.elc; do \ + $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)" + $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(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; \ + echo "$(INSTALL_DATA) $$q \"$(DESTDIR)$(lispdir)/$$q\""; \ + $(INSTALL_DATA) $(srcdir)/$$q "$(DESTDIR)$(lispdir)/$$q"; \ + if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \ + rm -f "$(DESTDIR)$(lispdir)/$$q.gz"; \ + $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$q"; \ + fi; \ fi; \ - echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \ - $(INSTALL_DATA) $$p $(lispdir)/$$p; \ + echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \ + $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \ done list-installed-shadows: @@ -75,11 +97,11 @@ remove-installed-shadows: uninstall: for p in *.elc; do \ - rm -f "$(lispdir)/$$p"; \ + rm -f "$(DESTDIR)$(lispdir)/$$p"; \ done cd $(srcdir); \ for p in *.el; do \ - rm -f "$(lispdir)/$$p"; \ + rm -f "$(DESTDIR)$(lispdir)/$$p" "$(DESTDIR)$(lispdir)/$$p.gz"; \ done tags: