2 datarootdir = @datarootdir@
7 top_srcdir = @top_srcdir@
12 INSTALL_DATA = @INSTALL_DATA@
15 EMACS_COMP = lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS)
16 GZIP_PROG = @GZIP_PROG@
17 COMPRESS_INSTALL = @COMPRESS_INSTALL@
21 $(EMACS_COMP) -f dgnushack-compile
24 rm -f *.elc gnus-load.el auto-autoloads.* custom-load.*
28 $(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"
30 fail-on-warning: clean-some
32 $(EMACS_COMP) -f dgnushack-compile-error-on-warn
34 # The "clever" rule is unsafe, since redefined macros are loaded from
35 # .elc files, and not the .el file.
36 clever some l: gnus-load.el
37 $(EMACS_COMP) -f dgnushack-compile
39 install: install-el-elc list-installed-shadows
42 check: test-registry test-nntp
45 $(EMACS) $(FLAGS) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit
48 $(EMACS) $(FLAGS) -l ert -l tests/gnustest-nntp.el -f ert-run-tests-batch-and-exit
50 # This entry will never install .el files if there are no .elc files.
51 install-el: gnus-load.el
52 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
53 $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
56 if [ -f "$(srcdir)/$$p" ]; then \
57 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
58 $(INSTALL_DATA) $(srcdir)/$$p "$(DESTDIR)$(lispdir)/$$p"; \
59 if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \
60 rm -f "$(DESTDIR)$(lispdir)/$$p.gz"; \
61 $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$p"; \
68 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
70 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
71 $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
74 install-el-elc: clever
76 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
77 $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
80 if [ -f "$(srcdir)/$$q" ]; then \
81 echo "$(INSTALL_DATA) $$q \"$(DESTDIR)$(lispdir)/$$q\""; \
82 $(INSTALL_DATA) $(srcdir)/$$q "$(DESTDIR)$(lispdir)/$$q"; \
83 if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \
84 rm -f "$(DESTDIR)$(lispdir)/$$q.gz"; \
85 $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$q"; \
88 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
89 $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
92 list-installed-shadows:
93 $(EMACS_COMP) -f dgnushack-find-lisp-shadows
95 remove-installed-shadows:
96 $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
100 rm -f "$(DESTDIR)$(lispdir)/$$p"; \
104 rm -f "$(DESTDIR)$(lispdir)/$$p" "$(DESTDIR)$(lispdir)/$$p.gz"; \
111 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
114 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
117 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
118 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
119 $(EMACS_COMP) -f dgnushack-make-load
122 rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el
127 Makefile: $(srcdir)/Makefile.in ../config.status
129 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
131 # Tell versions [3.59,3.63) of GNU make to not export all variables.
132 # Otherwise a system limit (for SysV at least) may be exceeded.