File: Makefile

package info (click to toggle)
cicero 0.7.2-2
  • links: PTS, VCS
  • area: contrib
  • in suites: wheezy
  • size: 384 kB
  • sloc: python: 1,235; makefile: 25; sh: 6
file content (29 lines) | stat: -rw-r--r-- 737 bytes parent folder | download | duplicates (3)
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
PREFIX=/usr
BINDIR=$(PREFIX)/bin
CICERO=$(PREFIX)/share/cicero
DOC=$(PREFIX)/share/doc/cicero
EXAMPLES=$(DOC)/examples
LOG=/var/log/cicero
DESTDIR=

all: config.py brltty_es_wrapper

config.py: config.py.in
	sed -e "s|__CICERO__|$(CICERO)|g" < $< > $@

brltty_es_wrapper: brltty_es_wrapper.in
	sed -e "s|__CICERO__|$(CICERO)|g" -e "s|__LOG__|$(LOG)|g" < $< > $@
	chmod 755 brltty_es_wrapper

clean: 
	-rm config.py brltty_es_wrapper

install: config.py brltty_es_wrapper
	install -d $(DESTDIR)/$(CICERO) \
		$(DESTDIR)/$(LOG) \
		$(DESTDIR)/$(BINDIR)
	install *.py brltty_es_wrapper $(DESTDIR)/$(CICERO)
	install -m 644 rules* $(DESTDIR)/$(CICERO)
	ln -s $(CICERO)/tts_brltty_es.py $(DESTDIR)/$(BINDIR)/cicero

.PHONY: install clean all