espeakup/Makefile
William Hubbs 82fa63600b fixed the makefile
Added espeakup.h as a dependency in the makefile so that the sources
will be compiled if it changes.
2008-10-09 19:40:11 -05:00

55 lines
938 B
Makefile

CC = cc
INSTALL = /usr/bin/install
RM = /bin/rm -f
SRCS = \
cli.c \
espeakup.c \
queue.c \
softsynth.c \
synth.c
OBJS = $(SRCS:.c=.o)
LDLIBS = -lespeak
PREFIX = /usr
BINDIR = $(PREFIX)/bin
all: espeakup
install: espeakup
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m 0755 $< $(DESTDIR)$(BINDIR)
clean:
$(RM) $(OBJS)
distclean: clean
$(RM) espeakup
espeakup: $(OBJS)
ifeq ("$(origin TAG)", "command line")
TIMESTAMP := _p$(shell date +%Y%m%d)
endif
VERSION := $(shell grep 'Version.*=' cli.c | sed 's/.*"\(.*\)";/\1/')
TAG := v$(VERSION)
TARPREFIX := espeakup-$(VERSION)
TARFILE := $(TARPREFIX)$(TIMESTAMP).tar
tarball:
git archive --format=tar --prefix=$(TARPREFIX)/ $(TAG) > $(TARFILE)
tar f $(TARFILE) --delete $(TARPREFIX)/.gitignore
bzip2 $(TARFILE)
cli.o: cli.c espeakup.h
espeakup.o: espeakup.c espeakup.h
queue.o: queue.c espeakup.h
softsynth.o: softsynth.c espeakup.h
synth.o: synth.c espeakup.h