From 8f6c1d0a6521ffdd60e977c68ea04b412063cd63 Mon Sep 17 00:00:00 2001 From: Umar Getagazov Date: Wed, 10 Nov 2021 19:50:54 +0700 Subject: [PATCH] Update Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make → make make run → run make check → check It still doesn't track any dependencies to avoid unnecessary rebuilds (like before), but eh. The Go toolchain does, though. --- Makefile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index f4936cf..8b33c83 100644 --- a/Makefile +++ b/Makefile @@ -2,18 +2,14 @@ include config.example.mk -include config.mk -run: build - ./mycorrhiza ${WIKIPATH} - -config_run: build - ./mycorrhiza ${WIKIPATH} - -devconfig_run: build - ./mycorrhiza ${WIKIPATH} - -build: +mycorrhiza: go generate go build . -test: +run: mycorrhiza + ./mycorrhiza ${WIKIPATH} + +check: go test . + +.PHONY: mycorrhiza run check