-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 1.63 KB
/
Makefile
File metadata and controls
28 lines (21 loc) · 1.63 KB
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
.DEFAULT_GOAL := help
sync-doc-pub-repo: ## sync the docs to the easy-graph.github.io repo
# rsync -au --delete --progress -h ./docs_using_sphinx/_build/html/ ../easy-graph.github.io/docs
# allows the user to pass -n to the sync-to-doc-pub-repo target, which in turn passes it to the rsync command
# https://chat.openai.com/chat/f9981feb-0732-439f-ad11-ba35634f4658
rsync $(if $(filter -n,$(MAKECMDGOALS)),-n,) -au --delete --progress -h ./docs_using_sphinx/_build/html/ ../easy-graph.github.io/docs --exclude='**/*test*'
update-doc-pub-repo: ## update the docs to the easy-graph.github.io repo
# rsync -au --delete --progress -h ./docs_using_sphinx/_build/html/ ../easy-graph.github.io/docs
# allows the user to pass -n to the sync-to-doc-pub-repo target, which in turn passes it to the rsync command
# https://chat.openai.com/chat/f9981feb-0732-439f-ad11-ba35634f4658
rsync $(if $(filter -n,$(MAKECMDGOALS)),-n,) -au --progress -h ./docs_using_sphinx/_build/html/ ../easy-graph.github.io/docs --exclude='**/*test*'
gen-easygraph-doc-source-rst: ## generate the easygraph-doc-source.rst file
pandoc README.md -o docs_using_sphinx/dev/easygraph-doc-source.rst
sync-egeps: ## sync the egeps to the docs_using_sphinx/egeps dir
rsync -au --delete --progress -h ../egeps/ ./docs_using_sphinx/egeps --exclude='../egeps/*' --exclude='../egeps/.*' --include='../egeps/*.rst'
rm -rf docs_using_sphinx/egeps/.git
push-all: ## push all changes to the remote repos
git-pp --push . ../easy-graph.github.io
.PHONY: *
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'