Skip to content

Commit

Permalink
modify Makefile (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang authored Oct 5, 2024
1 parent c7a3483 commit 221e70c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ 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()'

docs:
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
${JULIA} --project=docs docs/make.jl

all: format test docs

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"
@echo " - make all: run every commands above"
@echo " - make docs: instantiate and build the documentation"
@echo " - make all: run every commands in the above order"

.PHONY: default docs format test all help
.PHONY: default format test docs all help

0 comments on commit 221e70c

Please sign in to comment.