2001-02-09 20:00:00 ShengHuo ZHU <zsh@cs.rochester.edu>
[gnus] / 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:
19         rm -f *.elc
20         $(EMACS_COMP) -f dgnushack-compile
21
22 warn:
23         rm -f *.elc
24         $(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"
25
26 # The "clever" rule is unsafe, since redefined macros are loaded from
27 # .elc files, and not the .el file.
28 clever some:
29         $(EMACS_COMP) -f dgnushack-compile
30
31 install: clever
32         rm -f dgnushack.elc
33         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
34         for p in *.elc; do \
35           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
36           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
37         done
38
39 install-el:
40         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
41         cd $(srcdir) \
42         && for p in *.el; do \
43           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
44           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
45         done
46
47 tags:
48         etags *.el
49
50 separately:
51         rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
52
53 pot:
54         xpot -drgnus -r`cat ./version` *.el > rgnus.pot
55
56 gnus-load.el:
57         echo ";;; gnus-load.el --- automatically extracted custom dependencies" > gnus-load.el
58         echo ";;" >> gnus-load.el
59         echo ";;; Code:" >> gnus-load.el
60         echo >> gnus-load.el
61         $(EMACS)  $(FLAGS) -l ./dgnushack.el -l cus-edit.el *.el \
62                 -f custom-make-dependencies >> gnus-load.el
63         echo >> gnus-load.el
64         echo "(provide 'gnus-load)" >> gnus-load.el
65         echo >> gnus-load.el
66         echo ";;; gnus-load.el ends here" >> gnus-load.el
67
68 distclean:
69         rm -f *.orig *.rej *.elc *~ Makefile
70
71 Makefile: $(srcdir)/Makefile.in ../config.status
72         cd .. \
73           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
74
75 # Tell versions [3.59,3.63) of GNU make to not export all variables.
76 # Otherwise a system limit (for SysV at least) may be exceeded.
77 .NOEXPORT: