espeakup/Makefile
William Hubbs 8fda956e02 fixed permissions in makefile
It turns out that the install commands need to have the permission
options otherwise the permission of everything that is installed is 755,
which is not correct.
2009-10-09 11:20:17 -05:00

47 lines
726 B
Makefile

INSTALL ?= install
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
AUDIO ?= portaudio
alsa_SRCS = alsa.c
portaudio_SRCS = portaudio.c
SRCS = $($(AUDIO)_SRCS) \
cli.c \
espeak.c \
espeakup.c \
queue.c \
signal.c \
softsynth.c
ifeq ($(AUDIO),alsa)
SOUNDLIB = -lasound
endif
OBJS = $(SRCS:.c=.o)
LDLIBS = -lespeak $(SOUNDLIB)
all: espeakup
install: espeakup
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)/man8
$(INSTALL) -m 755 $< $(DESTDIR)$(BINDIR)
$(INSTALL) -m 644 espeakup.8 $(DESTDIR)$(MANDIR)/man8
clean:
$(RM) *.d *.o
distclean: clean
$(RM) espeakup
espeakup: $(OBJS)
%.o: %.c
$(COMPILE.c) -MMD -Wall $(OUTPUT_OPTION) $<
-include $(SRCS:.c=.d)