File: Makefile.in

package info (click to toggle)
speech-dispatcher 0.7-6.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,224 kB
  • ctags: 2,250
  • sloc: ansic: 17,857; sh: 10,533; python: 1,148; lisp: 579; makefile: 333
file content (50 lines) | stat: -rw-r--r-- 1,253 bytes parent folder | download
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

prefix = @prefix@
datadir = @datadir@
sysconfdir = @sysconfdir@
spdconforigdir = @spdconforigdir@
datarootdir = @datarootdir@

SPD_CONF_PATH_PY="speechd_config/spd_conf_path.py"

all:
	echo "SPD_CONF_ORIG_PATH=\"@spdconforigdir@\"" > speechd_config/paths.py
	echo "SPD_CONF_PATH=\"@spdconfdir@\"" >> speechd_config/paths.py
	echo "SPD_SOUND_DATA_PATH=\"${DESTDIR}@snddatadir@\"" >> speechd_config/paths.py
	echo "SPD_DESKTOP_CONF_PATH=\"${DESTDIR}@spddesktopconforigdir@\"" >> speechd_config/paths.py

	echo "SPD_SPAWN_CMD=\"@prefix@/bin/speech-dispatcher\"" > speechd/paths.py

install:
	if test -x /usr/bin/python; then \
		./setup.py install --no-compile --prefix=${DESTDIR}${prefix}; \
	else \
		echo "Python not found, not installing speechd module nor spd-conf"; \
	fi
	cp speechd_config/test.wav ${DESTDIR}@snddatadir@

	if test ! -d ${DESTDIR}@spddesktopconforigdir@; then \
		mkdir -p ${DESTDIR}@spddesktopconforigdir@; \
	fi

	cp speechd_config/speechd.desktop ${DESTDIR}@spddesktopconforigdir@/

uninstall:
	rm -f ${DESTDIR}@snddatadir@/test.wav
	rm -rf ${DESTDIR}@spddesktopconforigdir@

clean:
	rm -f *.pyc
	rm -rf build
	rm -f speechd_config/paths.py
	rm -f speechd/spawn.py

distclean: clean

maintainer-clean: clean

distdir:


check: