File: debMakefile

package info (click to toggle)
emacspeak 15-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,596 kB
  • ctags: 3,499
  • sloc: lisp: 33,875; makefile: 592; sh: 495; tcl: 492; perl: 351; cpp: 239
file content (32 lines) | stat: -rw-r--r-- 1,216 bytes parent folder | download | duplicates (5)
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
# extra makefile commands to create documentation files by extracting
# documentation from the emacspeak source code

docs: emacspeak.html emacspeak.info

emacspeak.html: emacspeak-main.texinfo
	texi2html -monolithic emacspeak.texinfo

# only emacspeak.info is named here, but this actually creates 4 files:
# emacspeak.info    emacspeak.info-1  emacspeak.info-2  emacspeak.info-3
emacspeak.info: emacspeak.texinfo emacspeak-main.texinfo
	makeinfo emacspeak.texinfo

# only emacspeak-main.texinfo is named here, but actually this command 
# generates 22 .texinfo files by extracting the comments from "all.el",
# which is all of the elisp files concatenated.
emacspeak-main.texinfo: all.el debian/explain
	debian/explain all.el >all.log

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

debclean:
	-rm all.el all.log *.info* *.html \
		`ls *.texinfo|grep -v emacspeak.texinfo`