-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathMakefile
149 lines (120 loc) · 4.23 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# $Author: tv.raman.tv $
# Description: Makefile for Emacspeak
# Keywords: Emacspeak, TTS,Makefile
### LCD Entry:
# LCD Archive Entry:
# emacspeak| T. V. Raman |[email protected]
# A speech interface to Emacs |
# Location https://github.com/tvraman/emacspeak
#
### Copyright:
#Copyright (C) 1995 -- 2024, T. V. Raman
# Copyright (c) 1994, 1995 by Digital Equipment Corporation.
# All Rights Reserved.
#
# This file is not part of GNU Emacs, but the same permissions apply.
#
# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,MA 02110-1301, USA.
### Configuration
.POSIX:
MAKE=make
MAKEFLAGS=--no-print-directory
README = README
### User level targets emacspeak outloud espeak
emacspeak: config
@cd lisp && $(MAKE) $(MAKEFLAGS)
@make $(README)
@chmod 644 $(README)
@echo "See the NEWS file for a summary of new features — Control e cap n in Emacs"
@echo "See Emacspeak Customizations for customizations — control e cap C in Emacs"
@echo "Read the Emacspeak Manual — Control e TAB in Emacs"
@make install
swiftmac:
@cd servers/mac-swiftmac && $(MAKE) $(MAKEFLAGS) || echo "Can't build swiftmac server!"
outloud:
@cd servers/linux-outloud && $(MAKE) $(MAKEFLAGS) || echo "Can't build Outloud server!"
espeak:
@cd servers/native-espeak && $(MAKE) $(MAKEFLAGS) || echo "Can't build espeak server!"
dtk:
@cd servers/software-dtk && $(MAKE) $(MAKEFLAGS) || echo "Can't build DTK server!"
### Maintenance targets: dist
GITVERSION=$(shell git show HEAD | head -1 | cut -b 8- )
README:
@rm -f README
@echo "Emacspeak Revision $(GITVERSION)" > $(README)
@echo "This release requires Emacs 29.1 or later." > $(README)
@echo "Distribution created by `whoami` at `date`" >> $(README)
@echo "Unpack the distribution And type make config " >> $(README)
@echo "Then type make" >> $(README)
EXCLUDES=-X .excludes --exclude-backups
dist:
make ${README}
tar cvf emacspeak.tar $(EXCLUDES) .
### User level target-- config
config:
@cd etc && $(MAKE) config $(MAKEFLAGS)
@cd lisp && $(MAKE) config $(MAKEFLAGS)
### complete build
all: emacspeak
q:
make clean
make config
make
@cd lisp && make muggles $(MAKEFLAGS)
@cd lisp && make extra-muggles $(MAKEFLAGS)
@test -d tvr && cd tvr && make $(MAKEFLAGS)
i:
cd info && make && git ci docs || true
cd info && make man
cd ../gh-pages-emacspeak && make && git ci docs || true
### user level target-- clean
clean:
@cd lisp && $(MAKE) $(MAKEFLAGS) clean
### labeling releases
#label releases when ready
LABEL=#version number
MSG="Releasing ${LABEL}"
release: #supply LABEL=NN.NN
git tag -a -s ${LABEL} -m "Tagging release with ${LABEL}"
git push --tags
$(MAKE) dist
mkdir emacspeak-${LABEL}; \
cd emacspeak-${LABEL} ;\
tar xvf ../emacspeak.tar ; \
rm -f ../emacspeak.tar ; \
cd .. ;\
tar cvfj emacspeak-${LABEL}.tar.bz2 emacspeak-$(LABEL); \
/bin/rm -rf emacspeak-${LABEL} ;\
echo "Prepared release in emacspeak-${LABEL}.tar.bz2"
./utils/emacspeak-ghr ${LABEL} "emacspeak-${LABEL}.tar.bz2"
### Install:
install:
@echo "This release requires Emacs 29.1 or later."
@echo "You need SoX installed to play OGG and WAV files."
@echo "You need curl installed for some Internet features."
@echo "To run this Emacspeak build, add this line to the top of your .emacs:"
@echo "(load-file \"`pwd`/lisp/emacspeak-setup.el\")"
@echo " Type make <engine> [dtk, outloud, espeak, swiftmac] to build TTS server. "
@echo "Package maintainers: see etc/install.org for instructions."
### Worktree:
# Usage make wk TAG=tag
wk:
git worktree add ../${TAG}-emacspeak ${TAG}
### end of file
#local variables:
#mode: makefile
#fill-column: 90
#outline-regexp: "^###"
#end: