-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 694 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (23 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.DEFAULT_GOAL := help
DOC := $(PWD)/node_modules/.bin/documentation
.PHONY: deps
deps: node_modules ## Install/Update dependencies
node_modules: package.json yarn.lock
@yarn install
touch $@
.PHONY: doc
doc:
@$(DOC) build src/index.js -f html -o docs
.PHONY: doc_watch
doc_watch:
@$(DOC) build src/index.js -f html -o docs -w
src/package.json: package.json
@cp -rf package.json src
src/README.md: README.md
@cp -rf README.md src
.PHONY: publish
publish: src/package.json src/README.md
@cd src; npm publish
.PHONY: help
help: ## Print this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'