From 8ec5b66a82cb007cea965a75996a516670f029ac Mon Sep 17 00:00:00 2001 From: Minoru Sekine Date: Mon, 24 Jun 2024 20:25:23 +0900 Subject: [PATCH] fix: Resolved unnecessary updating jsdoc. (#32) --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index cf77a41..f8a4d39 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ SITE_OUT_HTML := $(SITE_OUT_DIR)/$(HTML_FILE_NAME) SITE_OUT_CSS := $(SITE_OUT_DIR)/$(CSS_FILE_NAME) SITE_OUT_JS := $(SITE_OUT_DIR)/$(JS_FILE_NAME) SITE_OUT_JSDOC_DIR := $(SITE_OUT_DIR)/jsdoc +SITE_OUT_JSDOC_HTML := $(SITE_OUT_JSDOC_DIR)/index.html VERSION := $(shell git log -n 1 --pretty=format:"%h") DATETIME := $(shell git log -n 1 --pretty=format:"%ad") @@ -41,14 +42,17 @@ $(SITE_OUT_CSS): $(SITE_OUT_DIR) $(SRC_CSS) $(SITE_OUT_JS): $(SITE_OUT_DIR) $(SRC_JS) cp $(SRC_JS) $(SITE_OUT_JS) -site-jsdoc: setup-npm - mkdir -p $(SITE_OUT_JSDOC_DIR) - npm run doc +$(SITE_OUT_JSDOC_DIR): $(SITE_OUT_DIR) + mkdir -p $@ -setup-npm: +$(SITE_OUT_JSDOC_HTML): $(SITE_OUT_JSDOC_DIR) $(SRC_JS) npm install + npm run doc -lint: setup-npm +site-jsdoc: $(SITE_OUT_JSDOC_HTML) + +lint: + npm install npm run lint -.PHONY: all clean clean-out clean-site site site-jsdoc setup-npm lint +.PHONY: all clean clean-out clean-site site site-jsdoc lint