6 top_srcdir = @top_srcdir@
11 INSTALL_DATA = @INSTALL_DATA@
14 PACKAGEDIR = @PACKAGEDIR@
17 EMACS_COMP = URLDIR=$(URLDIR) W3DIR=$(W3DIR) lispdir=$(lispdir) srcdir=$(srcdir) $(EMACS) $(FLAGS)
18 GNUS_PRODUCT_NAME = @GNUS_PRODUCT_NAME@
19 EXPORTING_FILES = $(EMACS_COMP) -f dgnushack-exporting-files 2>/dev/null
21 # We should never use `COMMAND && ...' form, use `if COMMAND then ...'
22 # form instead. Because, as far as we know, FreeBSD's native make will
23 # be discontinued if COMMAND returns a non-zero exit status.
25 all total: clean-some gnus-load.el
26 $(EMACS_COMP) -f dgnushack-compile
29 rm -f *.elc gnus-load.el auto-autoloads.* custom-load.*
31 warn: clean-some gnus-load.el
32 $(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"
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 @if test -f $(srcdir)/gnus.elc; then \
39 "checking whether the all elc files should be recompiled..."; \
41 if test `$(EMACS) -batch -q -no-site-file \
42 -eval '(prin1 (featurep (quote xemacs)))' \
43 2>/dev/null` = t; then \
44 if test ! -f $(srcdir)/gnus-xmas.elc; then RM_ELC=t; fi; \
46 if test -f $(srcdir)/gnus-xmas.elc; then RM_ELC=t; fi; \
48 if test $$RM_ELC = t; then \
49 echo " => maybe yes;" \
50 "rm -f *.elc auto-autoloads.el custom-load.el"; \
51 rm -f *.elc auto-autoloads.el custom-load.el; \
53 echo " => maybe unnecessary"; \
56 $(EMACS_COMP) -f dgnushack-compile
58 install: clever install-without-compiling list-installed-shadows
60 install-without-compiling:
61 $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
62 @for p in `$(EXPORTING_FILES)`; do \
63 echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
64 $(INSTALL_DATA) $$p $(lispdir)/$$p; \
65 if test -f $$p"c"; then \
66 echo " $(INSTALL_DATA) $$p""c"" $(lispdir)/$$p""c"; \
67 $(INSTALL_DATA) $$p"c" $(lispdir)/$$p"c"; \
71 # Rule for XEmacs package.
72 install-package-manifest:
73 $(EMACS_COMP) -f dgnushack-install-package-manifest \
74 $(PACKAGEDIR) $(GNUS_PRODUCT_NAME)
76 remove-extra-files-in-package:
77 $(EMACS_COMP) -f dgnushack-remove-extra-files-in-package \
78 $(PACKAGEDIR) $(GNUS_PRODUCT_NAME)
82 $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
84 && for p in *.el; do \
85 echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
86 $(INSTALL_DATA) $$p $(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
99 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
102 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
105 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
106 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
107 $(EMACS_COMP) -f dgnushack-make-load
110 rm -f *.orig *.rej *.elc *~ \
111 auto-autoloads.el custom-load.el gnus-load.el dgnuskwds.el
114 rm -f Makefile dgnuspath.el
116 Makefile: $(srcdir)/Makefile.in ../config.status
118 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
120 # Tell versions [3.59,3.63) of GNU make to not export all variables.
121 # Otherwise a system limit (for SysV at least) may be exceeded.