Commit f8b1b9e7 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Makefile updated with new library files

parent 049144d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ LIBDIR = $(PREFIX)/lib
BINDIR = $(PREFIX)/bin

BINS = git-hooks
LIBS = run-hooks
LIBS = run-hooks string_functions arg_parse_functions

cp = cp --preserve=mode,timestamps
rm = rm --interactive=never
@@ -43,6 +43,7 @@ uninstall-bin:
install-lib: $(LIBS)
	@mkdir -p "$(LIBDIR)/$(PACKAGE)"
	$(cp) $? "$(LIBDIR)/$(PACKAGE)"
	sed -i 's|LIBDIR=.*|LIBDIR=$(LIBDIR)/$(PACKAGE)|' $(BINS)

uninstall-lib:
	$(rm) -r "$(LIBDIR)/$(PACKAGE)"