6 top_srcdir = @top_srcdir@
9 FLAGS = -batch -q -no-site-file -l $(srcdir)/dgnushack.el
11 INSTALL_DATA = @INSTALL_DATA@
16 EMACS_COMP = URLDIR=$(URLDIR) W3DIR=$(W3DIR) lispdir=$(lispdir) srcdir=$(srcdir) $(EMACS) $(FLAGS)
18 all total: clean-some gnus-load.elc
19 $(EMACS_COMP) -f dgnushack-compile
22 rm -f *.elc gnus-load.el
24 warn: clean-some gnus-load.elc
25 $(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"
27 # The "clever" rule is unsafe, since redefined macros are loaded from
28 # .elc files, and not the .el file.
29 clever some: gnus-load.elc
30 $(EMACS_COMP) -f dgnushack-compile
34 $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
36 echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
37 $(INSTALL_DATA) $$p $(lispdir)/$$p; \
41 $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
43 && for p in *.el; do \
44 echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
45 $(INSTALL_DATA) $$p $(lispdir)/$$p; \
52 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
55 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
58 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
59 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
60 $(EMACS_COMP) -f dgnushack-make-load
63 rm -f *.orig *.rej *.elc *~ Makefile
65 Makefile: $(srcdir)/Makefile.in ../config.status
67 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
69 # Tell versions [3.59,3.63) of GNU make to not export all variables.
70 # Otherwise a system limit (for SysV at least) may be exceeded.