diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-05 10:12:00 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-05 10:12:00 +0200 |
commit | bd7d8e4354ce1d92446cfc32bc9b5d0aee0f546f (patch) | |
tree | 01a99391c9187494066ec4b98571683a442941ff | |
parent | 4e3755a6850b0b3c195f1e2f502583934577251d (diff) |
added install/uninstall section to makefile
-rw-r--r-- | makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |