aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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