* Makefile (check): New rule
[elisp/wanderlust.git] / Makefile
1 #
2 # Please specify your Emacs here.
3 #
4 EMACS   = emacs
5 # To install Wanderlust for XEmacs 21 or later,
6 # running 'make install-package' is recommended.
7 # 'make install-package' refers $XEMACS instead of $EMACS.
8 XEMACS  = xemacs
9 #
10 # Target directory to install the Wanderlust package.
11 # (Automatically detected if this line is unchanged.)
12 #
13 LISPDIR = NONE
14 #LISPDIR = /usr/local/lib/mule/site-lisp
15
16 INFODIR = NONE
17 #INFODIR = /usr/local/share/info
18
19 # For XEmacs package.
20 PACKAGEDIR = NONE
21
22 # For XEmacs or Emacs 21: directory where icon files should go.
23 PIXMAPDIR = NONE
24
25
26 ################# No need to modify following lines ####################
27 FLAGS   = -batch -q -no-site-file
28
29 elc:
30         $(EMACS) $(FLAGS) -l WL-MK -f compile-wl-package $(LISPDIR) $(PIXMAPDIR)
31
32 check:
33         $(EMACS) $(FLAGS) -l WL-MK -f check-wl $(LISPDIR) $(PIXMAPDIR)
34
35 install-elc:
36         $(EMACS) $(FLAGS) -l WL-MK -f install-wl-package $(LISPDIR) $(PIXMAPDIR)
37
38 uninstall-elc:
39         $(EMACS) $(FLAGS) -l WL-MK -f uninstall-wl-package $(LISPDIR) $(PIXMAPDIR)
40
41 clean-elc:
42         rm -f wl/*.elc wl/*~ wl/auto-autoloads.el wl/custom-load.el elmo/*.elc utils/*.elc utils/hmac/lisp/*.elc
43
44 package:
45         $(XEMACS) $(FLAGS) -l WL-MK -f compile-wl-package-xmas $(PACKAGEDIR) $(PIXMAPDIR)
46
47 install-package:
48         $(XEMACS) $(FLAGS) -l WL-MK -f install-wl-package-xmas $(PACKAGEDIR) $(PIXMAPDIR)
49
50 info:
51         $(EMACS) $(FLAGS) -l WL-MK -f wl-texinfo-format $(INFODIR)
52
53 install-info:
54         $(EMACS) $(FLAGS) -l WL-MK -f install-wl-info $(INFODIR)
55
56 mostlyclean-info:
57         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
58
59 clean-info: mostlyclean-info
60         rm -f doc/*.info doc/*.info-*
61
62 mostlyclean-dvi:
63         rm -f doc/*~ doc/*.aux doc/*.log doc/*.toc
64
65 clean-dvi: mostlyclean-dvi
66         rm -f doc/*.dvi
67
68 all: elc
69
70 install: install-elc
71
72 uninstall: uninstall-elc
73
74 mostlyclean: clean-elc mostlyclean-info mostlyclean-dvi
75
76 clean: mostlyclean clean-dvi
77
78 distclean: maintainer-clean
79
80 maintainer-clean: clean clean-info