2001-12-03 11: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: clean-some gnus-load.el
19         $(EMACS_COMP) -f dgnushack-compile
20
21 clean-some:
22         rm -f *.elc gnus-load.el
23
24 warn: clean-some gnus-load.el
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.el
30         $(EMACS_COMP) -f dgnushack-compile
31
32 install: install-el install-elc 
33
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
38         for p in *.elc; do \
39           p=`basename $$p c`; \
40           if [ -f "$(srcdir)/$$p" ]; then \
41             echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
42             $(INSTALL_DATA) $(srcdir)/$$p $(lispdir)/$$p; \
43           fi; \
44         done
45
46 install-elc: clever
47         rm -f dgnushack.elc
48         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
49         for p in *.elc; do \
50           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
51           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
52         done
53
54 uninstall:
55         for p in *.elc; do \
56           rm -f "$(lispdir)/$$p"; \
57         done
58         cd $(srcdir); \
59         for p in *.el; do \
60           rm -f "$(lispdir)/$$p"; \
61         done
62
63 tags:
64         etags *.el
65
66 separately:
67         rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
68
69 pot:
70         xpot -drgnus -r`cat ./version` *.el > rgnus.pot
71
72 gnus-load.el:
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
76
77 distclean:
78         rm -f *.orig *.rej *.elc *~ Makefile
79
80 Makefile: $(srcdir)/Makefile.in ../config.status
81         cd .. \
82           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
83
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.
86 .NOEXPORT: