diff options
-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 |