tmus

TUI Music Player
git clone https://git.sinitax.com/sinitax/tmus
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit 2094e88cd1f4ddf511a5810f2ab376e49f1eeba3
parent e19de79be8a80f4487722be551bca3f839b59700
Author: Louis Burda <quent.burda@gmail.com>
Date:   Wed,  9 Nov 2022 12:43:07 +0100

Use PREFIX properly in Makefile

Diffstat:
MMakefile | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile @@ -15,7 +15,8 @@ DEPS = $(OBJS:%.o=%.d) LIBLIST_A = lib/liblist/build/liblist.a -.PHONY: all tmus clean cleanlibs install uninstall +PREFIX ?= /usr/local +BINDIR ?= /bin all: tmus @@ -41,9 +42,10 @@ $(LIBLIST_A): tmus: $(OBJS) $(LIBLIST_A) $(CC) -o tmus $^ $(CFLAGS) $(LDLIBS) -install: - install -m 755 tmus /usr/bin +install: tmus + install -m755 $< -t "$(DESTDIR)$(PREFIX)$(BINDIR)" uninstall: - rm -f /usr/bin/tmus + rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)" +.PHONY: all clean cleanlibs install uninstall