commit ed41d6532abcc8d0a388d5368fd6c13247b88f7e
parent b7a420a6ca942f94f1a8106eddcbb54cb091a6c6
Author: Louis Burda <quent.burda@gmail.com>
Date: Mon, 19 Dec 2022 22:00:24 +0100
Fix install and uninstall targets
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,9 @@
CFLAGS = -g -I src -I lib/minimp3/
LDLIBS = -lpulse -lpulse-simple
+PREFIX ?= /usr/local
+BINDIR ?= /bin
+
all: mplay
clean:
@@ -10,7 +13,7 @@ mplay: src/mplay.c
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
install:
- install -m755 -t mplay "$(DESTDIR)$(PREFIX)$(BINDIR)"
+ install -m755 mplay -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
uninstall:
rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/mplay"