diff options
author | Spencer Williams <spnw@plexwave.org> | 2023-07-27 18:58:09 -0400 |
---|---|---|
committer | Spencer Williams <spnw@plexwave.org> | 2023-07-27 18:58:09 -0400 |
commit | b52ea8be231f9fe9bd783567529565ee74a0d0b1 (patch) | |
tree | ef33d23dfd11af9de87f1f17a82798a626a04668 /Makefile | |
parent | 31193ae219dbc8295f8340dacc71be263b35cb8c (diff) |
Add "make install" rule
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |