aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-06-05 10:12:00 +0200
committerlonkaars <loek@pipeframe.xyz>2021-06-05 10:12:00 +0200
commitbd7d8e4354ce1d92446cfc32bc9b5d0aee0f546f (patch)
tree01a99391c9187494066ec4b98571683a442941ff /makefile
parent4e3755a6850b0b3c195f1e2f502583934577251d (diff)
added install/uninstall section to makefile
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/makefile b/makefile
index 05da12f..79cd34b 100644
--- a/makefile
+++ b/makefile
@@ -4,6 +4,7 @@ RM = rm -f
CFLAGS = -lcwalk -linih -lcrypto
OBJECTS := $(patsubst %.c,%.o, *.c)
+DESTDIR = /usr/local
all: musicopy
@@ -13,6 +14,13 @@ all: musicopy
musicopy: $(OBJECTS)
$(CC) $(OBJECTS) $(CFLAGS) -o musicopy
+install: musicopy
+ mkdir -p $(DESTDIR)/bin
+ cp -v musicopy $(DESTDIR)/bin
+
+uninstall:
+ rm -v $(DESTDIR)/bin/musicopy
+
clean:
$(RM) musicopy