about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 1 insertions, 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