From c7bece776d13a1c5ac1a52967ffb5cd1b3ed9a9c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 3 Aug 2008 10:35:31 -0500 Subject: [PATCH] fixed makefile There was a bug in the makefile which was not installing the binary correctly. This is now fixed. --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6c42f29..e270aca 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,18 @@ +CC = cc +INSTALL = /usr/bin/install +RM = /bin/rm + PREFIX = /usr +BINDIR = $(PREFIX)/bin LDLIBS = -lespeak -PROGRAM = espeakup +all: espeakup -all: $(PROGRAM) +install: espeakup + $(INSTALL) -d $(DESTDIR)$(BINDIR) + $(INSTALL) -m 0755 $(PROGRAM) $(DESTDIR)$(BINDIR) clean: - rm $(PROGRAM) - -install: $(PROGRAM) - install -m 0755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin + $(RM) espeakup