~gbmor/clinte

ad215ba851fa0c67ff657d76b1865ab2501af715 — Ben Morrison 1 year, 1 month ago 0c32375
install target: check for clinte.json before copying

removed upgrade target since it's now redundant
1 files changed, 1 insertions(+), 6 deletions(-)

M Makefile
M Makefile => Makefile +1 -6
@@ 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