(gnus-dribble-read-file): Quote file-precious-flag.
[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 = @FLAGS@
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 auto-autoloads.* custom-load.*
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 l: gnus-load.el
30         $(EMACS_COMP) -f dgnushack-compile
31
32 install: install-el-elc list-installed-shadows
33
34 # This entry will never install .el files if there are no .elc files.
35 install-el: gnus-load.el
36         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
37         echo " $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el"
38         $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el
39         for p in *.elc; do \
40           p=`basename $$p c`; \
41           if [ -f "$(srcdir)/$$p" ]; then \
42             echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
43             $(INSTALL_DATA) $(srcdir)/$$p $(lispdir)/$$p; \
44           fi; \
45         done
46
47 install-elc: clever
48         rm -f dgnushack.elc
49         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
50         for p in *.elc; do \
51           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
52           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
53         done
54
55 install-el-elc: clever
56         rm -f dgnushack.elc
57         $(SHELL) $(top_srcdir)/mkinstalldirs $(lispdir)
58         echo " $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el"
59         $(INSTALL_DATA) gnus-load.el $(lispdir)/gnus-load.el
60         for p in *.elc; do \
61           q=`basename $$p c`; \
62           if [ -f "$(srcdir)/$$q" ]; then \
63             echo " $(INSTALL_DATA) $$q $(lispdir)/$$q"; \
64             $(INSTALL_DATA) $(srcdir)/$$q $(lispdir)/$$q; \
65           fi; \
66           echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
67           $(INSTALL_DATA) $$p $(lispdir)/$$p; \
68         done
69
70 list-installed-shadows:
71         $(EMACS_COMP) -f dgnushack-find-lisp-shadows
72
73 remove-installed-shadows:
74         $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
75
76 uninstall:
77         for p in *.elc; do \
78           rm -f "$(lispdir)/$$p"; \
79         done
80         cd $(srcdir); \
81         for p in *.el; do \
82           rm -f "$(lispdir)/$$p"; \
83         done
84
85 tags:
86         etags *.el
87
88 separately:
89         rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
90
91 pot:
92         xpot -drgnus -r`cat ./version` *.el > rgnus.pot
93
94 gnus-load.el:
95         $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
96         $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
97         $(EMACS_COMP) -f dgnushack-make-load
98
99 distclean:
100         rm -f *.orig *.rej *.elc auto-autoloads.* custom-load.* *~ Makefile
101
102 Makefile: $(srcdir)/Makefile.in ../config.status
103         cd .. \
104           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
105
106 # Tell versions [3.59,3.63) of GNU make to not export all variables.
107 # Otherwise a system limit (for SysV at least) may be exceeded.
108 .NOEXPORT: