From ad215ba851fa0c67ff657d76b1865ab2501af715 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 16 Jun 2020 15:03:31 -0400 Subject: install target: check for clinte.json before copying removed upgrade target since it's now redundant --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 839fe6f..7d43699 100644 --- a/Makefile +++ b/Makefile @@ -35,14 +35,9 @@ install: @printf "\n%s\n" "Copying files..." install -m755 target/release/clinte $(BINDIR) - install -m666 clinte.json $(DBDIR) - @printf "\n%s\n" "...Done!" + @if [ -f "$(DBDIR)/clinte.json" ]; then printf "\n%s\n" "clinte.json exists. Skipping ..."; else install -m666 clinte.json "$(DBDIR)"; fi -.PHONY: upgrade -upgrade: - @printf "\n%s\n" "Upgrading clinte..." - install -m755 target/release/clinte $(BINDIR) @printf "\n%s\n" "...Done!" .PHONY: test -- cgit 1.4.1-2-gfad0