2 datarootdir = @datarootdir@
7 top_srcdir = @top_srcdir@
12 INSTALL_DATA = @INSTALL_DATA@
17 EMACS_COMP = URLDIR="$(URLDIR)" W3DIR="$(W3DIR)" lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS)
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
42 $(EMACS_COMP) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit
44 # This entry will never install .el files if there are no .elc files.
45 install-el: gnus-load.el
46 $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)"
47 $(INSTALL_DATA) gnus-load.el "$(lispdir)/gnus-load.el"
50 if [ -f "$(srcdir)/$$p" ]; then \
51 echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \
52 $(INSTALL_DATA) $(srcdir)/$$p "$(lispdir)/$$p"; \
58 $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)"
60 echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \
61 $(INSTALL_DATA) $$p "$(lispdir)/$$p"; \
64 install-el-elc: clever
66 $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)"
67 $(INSTALL_DATA) gnus-load.el "$(lispdir)/gnus-load.el"
70 if [ -f "$(srcdir)/$$q" ]; then \
71 echo "$(INSTALL_DATA) $$q \"$(lispdir)/$$q\""; \
72 $(INSTALL_DATA) $(srcdir)/$$q "$(lispdir)/$$q"; \
74 echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \
75 $(INSTALL_DATA) $$p "$(lispdir)/$$p"; \
78 list-installed-shadows:
79 $(EMACS_COMP) -f dgnushack-find-lisp-shadows
81 remove-installed-shadows:
82 $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
86 rm -f "$(lispdir)/$$p"; \
90 rm -f "$(lispdir)/$$p"; \
97 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
100 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
103 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
104 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
105 $(EMACS_COMP) -f dgnushack-make-load
108 rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el
113 Makefile: $(srcdir)/Makefile.in ../config.status
115 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
117 # Tell versions [3.59,3.63) of GNU make to not export all variables.
118 # Otherwise a system limit (for SysV at least) may be exceeded.