forked from wanderlust/wanderlust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
124 lines (97 loc) · 3.18 KB
/
Makefile
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
123
124
#
# Please specify your Emacs here.
#
EMACS = emacs
# To install Wanderlust for XEmacs 21 or later,
# running 'make install-package' is recommended.
# 'make install-package' refers $XEMACS instead of $EMACS.
XEMACS = xemacs
#
# Target directory to install the Wanderlust package.
# (Automatically detected if this line is unchanged.)
#
LISPDIR = NONE
#LISPDIR = /usr/local/lib/mule/site-lisp
INFODIR = NONE
#INFODIR = /usr/local/share/info
# For XEmacs package.
PACKAGEDIR = NONE
# For XEmacs or Emacs 21: directory where icon files should go.
PIXMAPDIR = NONE
################# No need to modify following lines ####################
BATCHFLAG = -batch
FLAGS = $(BATCHFLAG) -q -no-site-file $(EMACS_FLAGS)
elc:
$(EMACS) $(FLAGS) -l WL-MK -f compile-wl-package \
$(LISPDIR) $(PIXMAPDIR)
check:
$(EMACS) $(BATCHFLAG) -l WL-MK -f check-wl \
$(LISPDIR) $(PIXMAPDIR)
test:
$(EMACS) $(FLAGS) -l WL-MK -f test-wl \
$(LISPDIR) $(PIXMAPDIR)
update-version:
$(EMACS) $(FLAGS) -l WL-MK -f update-version \
$(LISPDIR) $(PIXMAPDIR)
compile-strict: clean-elc
@args="$(FLAGS)";\
args="$$args -L elmo -L wl";\
echo "=============================================";\
echo "Compiling the 1st stage-----without elc files";\
echo "=============================================";\
for i in `$(EMACS) $(FLAGS) -l WL-MK -f wl-examine-modules 2>/dev/null`;\
do\
j=`echo $$i| sed 's/elc$$/el/g'`;\
echo "$(EMACS) ARGS -f batch-byte-compile $$j";\
$(EMACS) $$args -f batch-byte-compile $$j;\
mv $$i $$j"x";\
done;\
for i in `echo elmo/*.elx wl/*.elx utils/*.elx`; do\
j=`echo $$i| sed 's/elx$$/elc/g'`;\
mv $$i $$j;\
done;\
echo "==============================================";\
echo "Compiling the 2nd stage-----with all elc files";\
echo "==============================================";\
for i in `$(EMACS) $(FLAGS) -l WL-MK -f wl-examine-modules 2>/dev/null`;\
do\
j=`echo $$i| sed 's/elc$$/el/g'`;\
echo "$(EMACS) ARGS -f batch-byte-compile $$j";\
$(EMACS) $$args -f batch-byte-compile $$j;\
done
install-elc:
$(EMACS) $(FLAGS) -l WL-MK -f install-wl-package \
$(LISPDIR) $(PIXMAPDIR)
uninstall-elc:
$(EMACS) $(FLAGS) -l WL-MK -f uninstall-wl-package \
$(LISPDIR) $(PIXMAPDIR)
clean-elc:
rm -f wl/*.elc wl/*~ wl/auto-autoloads.el wl/custom-load.el \
wl/wl-news.el elmo/*.elc utils/*.elc \
wl/*.elx elmo/*.elx utils/*.elx
package:
$(XEMACS) $(FLAGS) -l WL-MK -f compile-wl-package-xmas \
$(PACKAGEDIR) $(PIXMAPDIR)
install-package:
$(XEMACS) $(FLAGS) -l WL-MK -f install-wl-package-xmas \
$(PACKAGEDIR) $(PIXMAPDIR)
info:
$(EMACS) $(FLAGS) -l WL-MK -f wl-texinfo-format $(INFODIR)
install-info:
$(EMACS) $(FLAGS) -l WL-MK -f install-wl-info $(INFODIR)
mostlyclean-info:
rm -f doc/*~ doc/*.cp doc/*.fn doc/*.ky doc/*.pg doc/*.tp doc/*.vr \
doc/*.cps doc/*.fns doc/*.kys doc/*.pgs doc/*.tps doc/*.vrs
clean-info: mostlyclean-info
rm -f doc/*.info doc/*.info-*
mostlyclean-dvi:
rm -f doc/*~ doc/*.aux doc/*.log doc/*.toc
clean-dvi: mostlyclean-dvi
rm -f doc/*.dvi
all: elc
install: install-elc
uninstall: uninstall-elc
mostlyclean: clean-elc mostlyclean-info mostlyclean-dvi
clean: mostlyclean clean-dvi
distclean: maintainer-clean
maintainer-clean: clean clean-info