| 1 |
### |
| 2 |
### Makefile.in for byte-compile |
| 3 |
### |
| 4 |
### Author: Kazu Yamamoto <[email protected]> |
| 5 |
### Created: Nov 18, 1994 |
| 6 |
### Revised: Sep 1, 2010 |
| 7 |
|
| 8 |
### |
| 9 |
### (1) Set the following variables as you like. |
| 10 |
### (2) make |
| 11 |
### (2.1) make info |
| 12 |
### (2.2) make jinfo |
| 13 |
### (3) make install |
| 14 |
### (3.1) make install-jinfo |
| 15 |
### |
| 16 |
|
| 17 |
################################################################ |
| 18 |
## |
| 19 |
## EDIT THE FOLLOWINGS |
| 20 |
## |
| 21 |
|
| 22 |
prefix=@prefix@ |
| 23 |
exec_prefix=@exec_prefix@ |
| 24 |
libdir=@libdir@ |
| 25 |
datadir=@datadir@ |
| 26 |
infodir=@infodir@ |
| 27 |
|
| 28 |
## |
| 29 |
## Compile engines |
| 30 |
## |
| 31 |
|
| 32 |
EMACS = @emacsbin@ |
| 33 |
|
| 34 |
## |
| 35 |
## A directory where mew*.el[c] will be installed. |
| 36 |
## |
| 37 |
|
| 38 |
elispdir = @elispdir@ |
| 39 |
#elispdir = $(prefix)/share/emacs/site-lisp/mew |
| 40 |
#elispdir = $(prefix)/lib/emacs |
| 41 |
|
| 42 |
## |
| 43 |
## A directory where etc file will be installed. |
| 44 |
## |
| 45 |
|
| 46 |
etcdir = @etcdir@ |
| 47 |
#etcdir = $(prefix)/share/emacs/site-lisp/mew/etc |
| 48 |
|
| 49 |
################################################################ |
| 50 |
## |
| 51 |
## DO NOT EDIT THE FOLLOWINGS |
| 52 |
## |
| 53 |
|
| 54 |
OBJS = mew-addrbook.elc mew-attach.elc mew-auth.elc \ |
| 55 |
mew-blvs.elc mew-bq.elc mew-cache.elc \ |
| 56 |
mew-complete.elc mew-config.elc mew-const.elc \ |
| 57 |
mew-decode.elc mew-demo.elc mew-draft.elc \ |
| 58 |
mew-edit.elc mew-encode.elc \ |
| 59 |
mew-env.elc mew-env0.elc \ |
| 60 |
mew-ext.elc mew-fib.elc mew-func.elc \ |
| 61 |
mew-gemacs.elc mew-header.elc mew-highlight.elc \ |
| 62 |
mew-imap.elc mew-imap2.elc mew-key.elc \ |
| 63 |
mew-lang-jp.elc mew-lang-kr.elc mew-lang-latin.elc \ |
| 64 |
mew-local.elc mew-mark.elc \ |
| 65 |
mew-message.elc mew-mime.elc mew-minibuf.elc \ |
| 66 |
mew-mule.elc mew-mule3.elc \ |
| 67 |
mew-net.elc mew-nntp.elc mew-nntp2.elc \ |
| 68 |
mew-pgp.elc mew-pick.elc mew-pop.elc \ |
| 69 |
mew-refile.elc mew-scan.elc mew-smime.elc \ |
| 70 |
mew-search.elc mew-smtp.elc mew-sort.elc \ |
| 71 |
mew-ssh.elc mew-ssl.elc mew-passwd.elc \ |
| 72 |
mew-summary.elc mew-summary2.elc mew-summary3.elc \ |
| 73 |
mew-summary4.elc mew-syntax.elc \ |
| 74 |
mew-thread.elc mew-unix.elc \ |
| 75 |
mew-vars.elc mew-vars2.elc mew-vars3.elc \ |
| 76 |
mew-varsx.elc mew-virtual.elc \ |
| 77 |
mew-win32.elc mew-exec.elc \ |
| 78 |
mew-darwin.elc mew.elc |
| 79 |
|
| 80 |
SRCS = mew-addrbook.el mew-attach.el mew-auth.el \ |
| 81 |
mew-blvs.el mew-bq.el mew-cache.el \ |
| 82 |
mew-complete.el mew-config.el mew-const.el \ |
| 83 |
mew-decode.el mew-demo.el mew-draft.el \ |
| 84 |
mew-edit.el mew-encode.el \ |
| 85 |
mew-env.el mew-env0.el \ |
| 86 |
mew-ext.el mew-fib.el mew-func.el \ |
| 87 |
mew-gemacs.el mew-header.el mew-highlight.el \ |
| 88 |
mew-imap.el mew-imap2.el mew-key.el \ |
| 89 |
mew-lang-jp.el mew-lang-kr.el mew-lang-latin.el \ |
| 90 |
mew-local.el mew-mark.el \ |
| 91 |
mew-message.el mew-mime.el mew-minibuf.el \ |
| 92 |
mew-mule.el mew-mule3.el \ |
| 93 |
mew-net.el mew-nntp.el mew-nntp2.el \ |
| 94 |
mew-pgp.el mew-pick.el mew-pop.el \ |
| 95 |
mew-refile.el mew-scan.el mew-smime.el \ |
| 96 |
mew-search.el mew-smtp.el mew-sort.el \ |
| 97 |
mew-ssh.el mew-ssl.el mew-passwd.el \ |
| 98 |
mew-summary.el mew-summary2.el mew-summary3.el \ |
| 99 |
mew-summary4.el mew-syntax.el \ |
| 100 |
mew-thread.el mew-unix.el \ |
| 101 |
mew-vars.el mew-vars2.el mew-vars3.el \ |
| 102 |
mew-varsx.el mew-virtual.el \ |
| 103 |
mew-win32.el mew-exec.el \ |
| 104 |
mew-darwin.el mew.el |
| 105 |
|
| 106 |
TEMPFILE = temp.el |
| 107 |
TEMPFILE2 = temp2.el |
| 108 |
DETECT = emacs |
| 109 |
|
| 110 |
CP = cp |
| 111 |
RM = rm -f |
| 112 |
MKDIR = mkdir -p |
| 113 |
# To save Emacses on Windows |
| 114 |
PWD = |
| 115 |
|
| 116 |
CNF = config.h config.status config.cache config.log configure.lineno |
| 117 |
MK = Makefile |
| 118 |
|
| 119 |
DESTDIR = |
| 120 |
|
| 121 |
################################################################ |
| 122 |
|
| 123 |
all: $(OBJS) bin |
| 124 |
|
| 125 |
install: install-el install-bin install-info install-etc |
| 126 |
|
| 127 |
################################################################ |
| 128 |
|
| 129 |
$(OBJS): el |
| 130 |
el: $(TEMPFILE) mew.el |
| 131 |
@echo 'Compiling EL files of Mew ... ' |
| 132 |
@echo 'PLEASE IGNORE WARNINGS IF DISPLAYED. TAKE IT EASY!' |
| 133 |
$(EMACS) -batch -q -no-site-file -l ./$(TEMPFILE) -f mew-compile |
| 134 |
@echo 'Compiling EL files of Mew ... done' |
| 135 |
|
| 136 |
$(TEMPFILE): |
| 137 |
@echo '(setq mew-compiling t)' > $(TEMPFILE) |
| 138 |
@echo '(setq load-path (cons "." load-path))' >> $(TEMPFILE) |
| 139 |
@echo '(defun mew-compile () (mapcar (lambda (x) (byte-compile-file x)) (list ' >> $(TEMPFILE) |
| 140 |
@echo $(OBJS) | sed -e 's/\(mew[^ ]*\.el\)c/"\1"/g' >> $(TEMPFILE) |
| 141 |
@echo ')))' >> $(TEMPFILE) |
| 142 |
|
| 143 |
install-el: $(OBJS) |
| 144 |
-@if [ ! -d $(DESTDIR)$(elispdir) ]; then \ |
| 145 |
$(MKDIR) $(DESTDIR)$(elispdir); \ |
| 146 |
fi |
| 147 |
$(CP) $(SRCS) $(DESTDIR)$(elispdir) |
| 148 |
$(CP) $(OBJS) $(DESTDIR)$(elispdir) |
| 149 |
|
| 150 |
################################################################ |
| 151 |
|
| 152 |
detect: $(TEMPFILE2) mew.el |
| 153 |
@echo 'Compiling EL files of Mew ... ' |
| 154 |
$(DETECT) -batch -q -no-site-file -l ./$(TEMPFILE2) -f mew-compile |
| 155 |
@echo 'Compiling EL files of Mew ... done' |
| 156 |
|
| 157 |
$(TEMPFILE2): |
| 158 |
@echo '(setq mew-compiling t)' > $(TEMPFILE2) |
| 159 |
@echo '(setq load-path (cons "." load-path))' >> $(TEMPFILE2) |
| 160 |
@echo '(setq hack-local-variables-hook (lambda () (setq lexical-binding t)))' >> $(TEMPFILE2) |
| 161 |
@echo "(defun mew-compile () (mapcar (lambda (x) (byte-compile-file (symbol-name x))) '($(SRCS))))" >> $(TEMPFILE2) |
| 162 |
|
| 163 |
################################################################ |
| 164 |
|
| 165 |
bin:: |
| 166 |
cd bin; $(MAKE) |
| 167 |
|
| 168 |
install-bin: |
| 169 |
cd bin; $(MAKE) install DESTDIR=$(DESTDIR) |
| 170 |
|
| 171 |
################################################################ |
| 172 |
|
| 173 |
info:: |
| 174 |
cd info; $(MAKE) info EMACS=$(EMACS) |
| 175 |
|
| 176 |
install-info: |
| 177 |
cd info; $(MAKE) install-info infodir=$(infodir) DESTDIR=$(DESTDIR) |
| 178 |
|
| 179 |
################################################################ |
| 180 |
|
| 181 |
jinfo: |
| 182 |
cd info; $(MAKE) jinfo EMACS=$(EMACS) |
| 183 |
|
| 184 |
install-jinfo: |
| 185 |
cd info; $(MAKE) install-jinfo infodir=$(infodir) DESTDIR=$(DESTDIR) |
| 186 |
|
| 187 |
################################################################ |
| 188 |
|
| 189 |
install-etc: |
| 190 |
-@if [ ! -d $(DESTDIR)$(etcdir) ]; then \ |
| 191 |
$(MKDIR) $(DESTDIR)$(etcdir); \ |
| 192 |
fi |
| 193 |
cd etc; $(CP) -r * $(DESTDIR)$(etcdir)/ |
| 194 |
|
| 195 |
################################################################ |
| 196 |
|
| 197 |
clean: |
| 198 |
$(RM) *.elc $(TEMPFILE) $(TEMPFILE2) |
| 199 |
-@if [ -f bin/Makefile ]; then \ |
| 200 |
cd bin; $(MAKE) clean; \ |
| 201 |
fi |
| 202 |
|
| 203 |
distclean: |
| 204 |
$(RM) *.elc $(TEMPFILE) $(TEMPFILE2) $(CNF) $(MK) |
| 205 |
-@if [ -f bin/Makefile ]; then \ |
| 206 |
cd bin; $(MAKE) distclean; \ |
| 207 |
fi |
| 208 |
|
| 209 |
################################################################ |
| 210 |
## |
| 211 |
## For github users |
| 212 |
## |
| 213 |
|
| 214 |
# git fetch |
| 215 |
# make log to see logs of updates |
| 216 |
# make diff to see the updates |
| 217 |
# git pull |
| 218 |
|
| 219 |
log:: |
| 220 |
git log HEAD..FETCH_HEAD |
| 221 |
|
| 222 |
diff:: |
| 223 |
git diff HEAD..FETCH_HEAD |
| 224 |
|
| 225 |
VERSION = `git tag | tail -1 | sed -e 's/v//'` |
| 226 |
|
| 227 |
archive: |
| 228 |
git archive master -o ~/mew-$(VERSION).tar --prefix=mew-$(VERSION)/ |
| 229 |
gzip ~/mew-$(VERSION).tar |
| 230 |
|
| 231 |
## |
| 232 |
## End of Makefile |
| 233 |
## |