Skip to content

Commit

Permalink
Merge pull request #33 from MinoruSekine/fix/32/skip_unnecessary_jsdo…
Browse files Browse the repository at this point in the history
…c_updates

fix: Resolved unnecessary updating jsdoc. (#32)
  • Loading branch information
MinoruSekine authored Jun 25, 2024
2 parents a179175 + 8ec5b66 commit 5223727
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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

0 comments on commit 5223727

Please sign in to comment.