2 datarootdir = @datarootdir@
7 top_srcdir = @top_srcdir@
12 INSTALL_DATA = @INSTALL_DATA@
15 EMACS_COMP = lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS)
17 all total: clean-some gnus-load.el
18 $(EMACS_COMP) -f dgnushack-compile
21 rm -f *.elc gnus-load.el auto-autoloads.* custom-load.*
23 warn: clean-some gnus-load.el
24 $(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"
26 fail-on-warning: clean-some gnus-load.el
27 $(EMACS_COMP) -f dgnushack-compile-error-on-warn
29 # The "clever" rule is unsafe, since redefined macros are loaded from
30 # .elc files, and not the .el file.
31 clever some l: gnus-load.el
32 $(EMACS_COMP) -f dgnushack-compile
34 install: install-el-elc list-installed-shadows
37 check: test-registry test-nntp
40 $(EMACS) $(FLAGS) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit
43 $(EMACS) $(FLAGS) -l ert -l tests/gnustest-nntp.el -f ert-run-tests-batch-and-exit
45 # This entry will never install .el files if there are no .elc files.
46 install-el: gnus-load.el
47 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
48 $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
51 if [ -f "$(srcdir)/$$p" ]; then \
52 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
53 $(INSTALL_DATA) $(srcdir)/$$p "$(DESTDIR)$(lispdir)/$$p"; \
59 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
61 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
62 $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
65 install-el-elc: clever
67 $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
68 $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
71 if [ -f "$(srcdir)/$$q" ]; then \
72 echo "$(INSTALL_DATA) $$q \"$(DESTDIR)$(lispdir)/$$q\""; \
73 $(INSTALL_DATA) $(srcdir)/$$q "$(DESTDIR)$(lispdir)/$$q"; \
75 echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
76 $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
79 list-installed-shadows:
80 $(EMACS_COMP) -f dgnushack-find-lisp-shadows
82 remove-installed-shadows:
83 $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
87 rm -f "$(DESTDIR)$(lispdir)/$$p"; \
91 rm -f "$(DESTDIR)$(lispdir)/$$p"; \
98 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
101 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
104 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
105 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
106 $(EMACS_COMP) -f dgnushack-make-load
109 rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el
114 Makefile: $(srcdir)/Makefile.in ../config.status
116 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
118 # Tell versions [3.59,3.63) of GNU make to not export all variables.
119 # Otherwise a system limit (for SysV at least) may be exceeded.