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