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
|
# Makefile for speechd-el
# Copyright (C) 2003, 2004 Brailcom, o.p.s.
EMACS = emacs
NAME = speechd-el
VERSION = 1.0
DISTDIR = $(NAME)-$(VERSION)
TARFILE = $(NAME)-$(VERSION).tar
.PHONY: all install install-strip uninstall clean distclean mostlyclean \
maintainer-clean TAGS info dvi dist check
all: compile info
compile: speechd.elc speechd-speak.elc speechd-bug.elc speechd-version.elc
speechd.elc: speechd.el
$(EMACS) --batch -l speechd.el -f batch-byte-compile $<
speechd-speak.elc: speechd-speak.el speechd.elc
$(EMACS) --batch -l speechd.elc -l speechd-speak.el -f batch-byte-compile $<
speechd-bug.elc: speechd-bug.el speechd-speak.elc speechd.elc speechd-version.elc
$(EMACS) --batch -l speechd.elc -l speechd-speak.elc -l speechd-version.elc -l speechd-bug.el -f batch-byte-compile $<
speechd-version.elc: speechd-version.el
$(EMACS) --batch -f batch-byte-compile $<
speechd-version.el:
echo '(defconst speechd-version "' `tla logs -f -r | head -1` '")' > $@
echo "(provide 'speechd-version)" >> $@
install:
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
uninstall:
mostlyclean:
rm -f *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr *~
clean: mostlyclean
rm -f *.dvi *.elc speechd-el.pdf *.ps
distclean: clean
rm -rf $(DISTDIR) $(TARFILE)* *.orig *.rej
maintainer-clean: distclean
rm -f *.info*
TAGS:
etags *.el
doc: info pdf
info: speechd-el.info
%.info: %.texi
makeinfo $<
info-cs: speechd-el.cs.info
pdf: speechd-el.pdf
%.pdf: %.texi
texi2pdf $<
ps: speechd-el.ps
%.ps: %.texi
texi2ps $<
dist: maintainer-clean info speechd-version.el
mkdir $(DISTDIR)
chmod 755 $(DISTDIR)
install -m 644 `find . -maxdepth 1 -type f -name '[a-zA-Z]*'` \
$(DISTDIR)
(cd $(DISTDIR); $(MAKE) distclean)
tar cvf $(TARFILE) $(DISTDIR)
gzip -9 $(TARFILE)
check:
|