-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from ytdHuang/makefile
Add Makefile
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
JULIA:=julia | ||
|
||
default: help | ||
|
||
docs: | ||
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
${JULIA} --project=docs docs/make.jl | ||
|
||
format: | ||
${JULIA} -e 'using JuliaFormatter; format(".")' | ||
|
||
test: | ||
${JULIA} --project -e 'using Pkg; Pkg.resolve(); Pkg.test()' | ||
|
||
help: | ||
@echo "The following make commands are available:" | ||
@echo " - make docs: instantiate and build the documentation" | ||
@echo " - make format: format codes with JuliaFormatter" | ||
@echo " - make test: run the tests" | ||
|
||
.PHONY: default docs format test help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters