Importing Oort Gnus v0.03.
[elisp/gnus.git-] / lisp / Makefile.in
1 datadir = @datadir@
2 lispdir = @lispdir@
3 prefix = @prefix@
4 srcdir = @srcdir@
5 subdir = lisp
6 top_srcdir = @top_srcdir@
7
8 EMACS = @EMACS@
9 FLAGS = -batch -q -no-site-file -l $(srcdir)/dgnushack.el
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 SHELL = /bin/sh
13 VPATH = @srcdir@
14 W3DIR = @W3@
15 URLDIR = @URL@
16 EMACS_COMP = URLDIR=$(URLDIR) W3DIR=$(W3DIR) lispdir=$(lispdir) srcdir=$(srcdir) $(EMACS) $(FLAGS)
17
18 all total: clean-some gnus-load.elc
19         $(EMACS_COMP) -f dgnushack-compile
20
21 clean-some:
22         rm -f *.elc gnus-load.el
23
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"
26
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
31
32 install: clever
33         rm -f dgnushack.elc
34         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
35         for p in *.elc; do \
36           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
37           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
38         done
39
40 install-el:
41         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
42         cd $(srcdir) \
43         && for p in *.el; do \
44           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
45           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
46         done
47
48 tags:
49         etags *.el
50
51 separately:
52         rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
53
54 pot:
55         xpot -drgnus -r`cat ./version` *.el > rgnus.pot
56
57 gnus-load.elc:
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
61
62 distclean:
63         rm -f *.orig *.rej *.elc *~ Makefile
64
65 Makefile: $(srcdir)/Makefile.in ../config.status
66         cd .. \
67           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
68
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.
71 .NOEXPORT: