From bd7d8e4354ce1d92446cfc32bc9b5d0aee0f546f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 5 Jun 2021 10:12:00 +0200 Subject: added install/uninstall section to makefile --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3