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