mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
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.
47 lines
726 B
Makefile
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)
|