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@
19 all total: clean-some gnus-load.el
20 $(EMACS_COMP) -f dgnushack-compile
23 rm -f *.elc gnus-load.el auto-autoloads.* custom-load.*
25 warn: clean-some gnus-load.el
26 $(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"
28 fail-on-warning: clean-some gnus-load.el
29 $(EMACS_COMP) -f dgnushack-compile-error-on-warn
31 # The "clever" rule is unsafe, since redefined macros are loaded from
32 # .elc files, and not the .el file.
33 clever some l: gnus-load.el
34 $(EMACS_COMP) -f dgnushack-compile
36 install: install-el-elc list-installed-shadows
39 check: test-registry test-nntp
42 $(EMACS) $(FLAGS) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit
45 $(EMACS) $(FLAGS) -l ert -l tests/gnustest-nntp.el -f ert-run-tests-batch-and-exit
47 # This entry will never install .el files if there are no .elc files.
48 install-el: gnus-load.el
49 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
50 $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
53 if [ -f "$(srcdir)/$$p" ]; then \
54 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
55 $(INSTALL_DATA) $(srcdir)/$$p "$(DESTDIR)$(lispdir)/$$p"; \
56 if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \
57 rm -f "$(DESTDIR)$(lispdir)/$$p.gz"; \
58 $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$p"; \
65 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
67 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
68 $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
71 install-el-elc: clever
73 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
74 $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
77 if [ -f "$(srcdir)/$$q" ]; then \
78 echo "$(INSTALL_DATA) $$q \"$(DESTDIR)$(lispdir)/$$q\""; \
79 $(INSTALL_DATA) $(srcdir)/$$q "$(DESTDIR)$(lispdir)/$$q"; \
80 if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \
81 rm -f "$(DESTDIR)$(lispdir)/$$q.gz"; \
82 $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$q"; \
85 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
86 $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
89 list-installed-shadows:
90 $(EMACS_COMP) -f dgnushack-find-lisp-shadows
92 remove-installed-shadows:
93 $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
97 rm -f "$(DESTDIR)$(lispdir)/$$p"; \
101 rm -f "$(DESTDIR)$(lispdir)/$$p" "$(DESTDIR)$(lispdir)/$$p.gz"; \
108 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
111 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
114 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
115 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
116 $(EMACS_COMP) -f dgnushack-make-load
119 rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el
124 Makefile: $(srcdir)/Makefile.in ../config.status
126 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
128 # Tell versions [3.59,3.63) of GNU make to not export all variables.
129 # Otherwise a system limit (for SysV at least) may be exceeded.