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
|
PERL = perl
TEXINDEX=texindex
MAKEINFO = makeinfo
infodir =/usr/info#normally supplied by caller
INSTALL = install
docs: emacspeak.txt info
emacspeak.html: emacspeak-main.texinfo
texi2html -monolithic emacspeak.texinfo
emacspeak.txt: emacspeak.html
lynx -dump -nolist emacspeak.html >emacspeak.txt
info: emacspeak.texinfo emacspeak-main.texinfo
makeinfo emacspeak.texinfo
install: emacspeak.info
if test ! -f $(infodir)/dir ; then \
echo ' --- PLEASE ADD DOCUMENTATION TO THIS TREE. (See INFO topic first.) ---' >$(infodir)/dir ; \
echo '* Menu:' >>$(infodir)/dir ; \
fi
if fgrep emacspeak $(infodir)/dir 1> /dev/null 2> /dev/null; then \
echo >/dev/null; \
else \
echo '* Emacspeak:(emacspeak). A speech interface to Emacs' >>$(infodir)/dir ;\
fi
$(INSTALL) -m 644 emacspeak.info* $(infodir)
emacspeak.info: emacspeak.texinfo emacspeak-main.texinfo
$(MAKEINFO) emacspeak.texinfo
emacspeak-main.texinfo: all.el explain
$(PERL) explain all.el >all.log
ELISP=../*.el
# all.el is all of the elisp files concatenated (with some substitutions)
all.el: $(ELISP)
cat $(ELISP) | sed \
-e 's/\\\\\[dtk-emergency-restart\]/@samp{M-x dtk-emergency-restart}/' \
-e 's/\\\\\[dtk-initialize\]/@samp{M-x dtk-initialize}/' \
-e 's/\\\\\[keyboard-quit\]/@samp{C-g}/' \
-e 's/\\\\\[yank\]/@samp{C-y}/' \
-e 's/\\\\\[yank-pop\]/@samp{ESC y}/' \
-e 's/\\\\\[voice-lock-voiceify-buffer\]/@samp{M-x voice-lock-voiceify-buffer}/' \
> all.el
SRC= emacspeak.texinfo explain Makefile
dist: $(SRC)
distname=`sed -e '/\$Revision:/!d' \
-e 's/[^0-9]*\([0-9.]*\).*/emacspeak-texi-\1/' \
-e q emacspeak.texinfo`; \
rm -fr $$distname; \
mkdir $$distname; \
for file in $(SRC); do \
ln $$file $$distname/$$file \
|| { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
done; \
chmod -R a+rX $$distname; \
tar -chz -f $$distname.tar.gz $$distname; \
rm -fr $$distname
# take care not to delete emacspeak.texinfo
clean:
mv emacspeak.texinfo .. && rm -f *.texinfo && mv ../emacspeak.texinfo .
rm -rf all.el all.log
veryclean: clean
rm -rf emacspeak.info* emacspeak
emacspeak.dvi: emacspeak.texinfo
tex emacspeak.texinfo
$(TEXINDEX) emacspeak.cp emacspeak.fn emacspeak.ky emacspeak.pg emacspeak.tp emacspeak.vr
tex emacspeak.texinfo
rm -f emacspeak.cp emacspeak.fn emacspeak.ky emacspeak.pg emacspeak.tp emacspeak.vr \
emacspeak.cps emacspeak.fns emacspeak.kys emacspeak.pgs emacspeak.tps emacspeak.vrs \
emacspeak.log emacspeak.toc emacspeak.aux
print: emacspeak.dvi
dvips emacspeak.dvi
|