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
32 install: install-el install-elc
34 install-el: gnus-load.el
35 $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
36 echo " $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el"
37 $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el
40 if [ -f "$(srcdir)/$$p" ]; then \
41 echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
42 $(INSTALL_DATA) $(srcdir)/$$p $(lispdir)/$$p; \
48 $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
50 echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
51 $(INSTALL_DATA) $$p $(lispdir)/$$p; \
56 rm -f "$(lispdir)/$$p"; \
60 rm -f "$(lispdir)/$$p"; \
67 rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
70 xpot -drgnus -r`cat ./version` *.el > rgnus.pot
72 gnus-load.el gnus-load.elc:
73 $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
74 $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
75 $(EMACS_COMP) -f dgnushack-make-load
78 rm -f *.orig *.rej *.elc *~ Makefile
80 Makefile: $(srcdir)/Makefile.in ../config.status
82 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
84 # Tell versions [3.59,3.63) of GNU make to not export all variables.
85 # Otherwise a system limit (for SysV at least) may be exceeded.