Rename 24.5 to 25.1
[gnus] / lisp / Makefile.in
1 prefix = @prefix@
2 datarootdir = @datarootdir@
3 datadir = @datadir@
4 lispdir = @lispdir@
5 srcdir = @srcdir@
6 subdir = lisp
7 top_srcdir = @top_srcdir@
8
9 EMACS = @EMACS@
10 FLAGS = @FLAGS@
11 INSTALL = @INSTALL@
12 INSTALL_DATA = @INSTALL_DATA@
13 SHELL = /bin/sh
14 VPATH = @srcdir@
15 EMACS_COMP = lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS)
16 GZIP_PROG = @GZIP_PROG@
17 COMPRESS_INSTALL = @COMPRESS_INSTALL@
18
19 all total: clean-some gnus-load.el
20         $(EMACS_COMP) -f dgnushack-compile
21
22 clean-some:
23         rm -f *.elc gnus-load.el auto-autoloads.* custom-load.*
24
25 warn: clean-some gnus-load.el
26         $(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
28 fail-on-warning: clean-some gnus-load.el
29         $(EMACS_COMP) -f dgnushack-compile-error-on-warn
30
31 # The "clever" rule is unsafe, since redefined macros are loaded from
32 # .elc files, and not the .el file.
33 clever some l: gnus-load.el
34         $(EMACS_COMP) -f dgnushack-compile
35
36 install: install-el-elc list-installed-shadows
37
38 # Test rules
39 check:  test-registry test-nntp
40
41 test-registry:
42         $(EMACS) $(FLAGS) -l ert -l gnus-registry.el -f ert-run-tests-batch-and-exit
43
44 test-nntp:
45         $(EMACS) $(FLAGS) -l ert -l tests/gnustest-nntp.el -f ert-run-tests-batch-and-exit
46
47 # This entry will never install .el files if there are no .elc files.
48 install-el: gnus-load.el
49         $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
50         $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
51         @for p in *.elc; do \
52           p=`basename $$p c`; \
53           if [ -f "$(srcdir)/$$p" ]; then \
54             echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
55             $(INSTALL_DATA) $(srcdir)/$$p "$(DESTDIR)$(lispdir)/$$p"; \
56             if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \
57               rm -f "$(DESTDIR)$(lispdir)/$$p.gz"; \
58               $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$p"; \
59             fi; \
60           fi; \
61         done
62
63 install-elc: clever
64         rm -f dgnushack.elc
65         $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
66         @for p in *.elc; do \
67           echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
68           $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
69         done
70
71 install-el-elc: clever
72         rm -f dgnushack.elc
73         $(SHELL) $(top_srcdir)/mkinstalldirs "$(DESTDIR)$(lispdir)"
74         $(INSTALL_DATA) gnus-load.el "$(DESTDIR)$(lispdir)/gnus-load.el"
75         @for p in *.elc; do \
76           q=`basename $$p c`; \
77           if [ -f "$(srcdir)/$$q" ]; then \
78             echo "$(INSTALL_DATA) $$q \"$(DESTDIR)$(lispdir)/$$q\""; \
79             $(INSTALL_DATA) $(srcdir)/$$q "$(DESTDIR)$(lispdir)/$$q"; \
80             if test $(COMPRESS_INSTALL) = yes -a -n "$(GZIP_PROG)"; then \
81               rm -f "$(DESTDIR)$(lispdir)/$$q.gz"; \
82               $(GZIP_PROG) -9n "$(DESTDIR)$(lispdir)/$$q"; \
83             fi; \
84           fi; \
85           echo "$(INSTALL_DATA) $$p \"$(DESTDIR)$(lispdir)/$$p\""; \
86           $(INSTALL_DATA) $$p "$(DESTDIR)$(lispdir)/$$p"; \
87         done
88
89 list-installed-shadows:
90         $(EMACS_COMP) -f dgnushack-find-lisp-shadows
91
92 remove-installed-shadows:
93         $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
94
95 uninstall:
96         for p in *.elc; do \
97           rm -f "$(DESTDIR)$(lispdir)/$$p"; \
98         done
99         cd $(srcdir); \
100         for p in *.el; do \
101           rm -f "$(DESTDIR)$(lispdir)/$$p" "$(DESTDIR)$(lispdir)/$$p.gz"; \
102         done
103
104 tags:
105         etags *.el
106
107 separately:
108         rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
109
110 pot:
111         xpot -drgnus -r`cat ./version` *.el > rgnus.pot
112
113 gnus-load.el:
114         $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
115         $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
116         $(EMACS_COMP) -f dgnushack-make-load
117
118 clean:
119         rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el
120
121 distclean: clean
122         rm -f Makefile
123
124 Makefile: $(srcdir)/Makefile.in ../config.status
125         cd .. \
126           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
127
128 # Tell versions [3.59,3.63) of GNU make to not export all variables.
129 # Otherwise a system limit (for SysV at least) may be exceeded.
130 .NOEXPORT: