Installed Makefile rules for NNTP testing.
[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 W3DIR = @W3@
16 URLDIR = @URL@
17 EMACS_COMP = URLDIR="$(URLDIR)" W3DIR="$(W3DIR)" lispdir="$(lispdir)" srcdir=$(srcdir) $(EMACS) $(FLAGS)
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 "$(lispdir)"
50         $(INSTALL_DATA) gnus-load.el "$(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 \"$(lispdir)/$$p\""; \
55             $(INSTALL_DATA) $(srcdir)/$$p "$(lispdir)/$$p"; \
56           fi; \
57         done
58
59 install-elc: clever
60         rm -f dgnushack.elc
61         $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)"
62         @for p in *.elc; do \
63           echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \
64           $(INSTALL_DATA) $$p "$(lispdir)/$$p"; \
65         done
66
67 install-el-elc: clever
68         rm -f dgnushack.elc
69         $(SHELL) $(top_srcdir)/mkinstalldirs "$(lispdir)"
70         $(INSTALL_DATA) gnus-load.el "$(lispdir)/gnus-load.el"
71         @for p in *.elc; do \
72           q=`basename $$p c`; \
73           if [ -f "$(srcdir)/$$q" ]; then \
74             echo "$(INSTALL_DATA) $$q \"$(lispdir)/$$q\""; \
75             $(INSTALL_DATA) $(srcdir)/$$q "$(lispdir)/$$q"; \
76           fi; \
77           echo "$(INSTALL_DATA) $$p \"$(lispdir)/$$p\""; \
78           $(INSTALL_DATA) $$p "$(lispdir)/$$p"; \
79         done
80
81 list-installed-shadows:
82         $(EMACS_COMP) -f dgnushack-find-lisp-shadows
83
84 remove-installed-shadows:
85         $(EMACS_COMP) -f dgnushack-remove-lisp-shadows
86
87 uninstall:
88         for p in *.elc; do \
89           rm -f "$(lispdir)/$$p"; \
90         done
91         cd $(srcdir); \
92         for p in *.el; do \
93           rm -f "$(lispdir)/$$p"; \
94         done
95
96 tags:
97         etags *.el
98
99 separately:
100         rm -f *.elc ; for i in *.el; do $(EMACS) $(FLAGS) -f batch-byte-compile $$i; done
101
102 pot:
103         xpot -drgnus -r`cat ./version` *.el > rgnus.pot
104
105 gnus-load.el:
106         $(EMACS_COMP) -f dgnushack-make-cus-load $(srcdir)
107         $(EMACS_COMP) -f dgnushack-make-auto-load $(srcdir)
108         $(EMACS_COMP) -f dgnushack-make-load
109
110 clean:
111         rm -f *.elc *.orig *.rej *~ auto-autoloads.* custom-load.* gnus-load.el
112
113 distclean: clean
114         rm -f Makefile
115
116 Makefile: $(srcdir)/Makefile.in ../config.status
117         cd .. \
118           && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
119
120 # Tell versions [3.59,3.63) of GNU make to not export all variables.
121 # Otherwise a system limit (for SysV at least) may be exceeded.
122 .NOEXPORT: