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