From b52ea8be231f9fe9bd783567529565ee74a0d0b1 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Thu, 27 Jul 2023 18:58:09 -0400 Subject: Add "make install" rule --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 391f86e..d8fab07 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ TARGET = mpc-bar OBJCFLAGS = -O2 -fobjc-arc -Wall LDFLAGS = -lmpdclient -framework Cocoa +BINDIR = /usr/local/bin $(TARGET): mpc-bar.m $(CC) $(OBJCFLAGS) $< $(LDFLAGS) -o $@ +install: $(TARGET) + install -m755 $< $(BINDIR)/$< + clean: rm -f $(TARGET) -- cgit v1.2.3