-
Notifications
You must be signed in to change notification settings - Fork 0
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 #36 from ProjectTorreyPines/make
Adding makefile for building Julia environment
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 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,24 @@ | ||
SHELL := /bin/zsh | ||
help: | ||
@echo "Help Menu" | ||
@echo | ||
@echo "make env_with_cloned_repo (or make r): Creates a Julia environment with the cloned repositories" | ||
@echo "make env_with_git_url (or make u): Creates a Julia environment with the git urls without creating local clones" | ||
@echo "make clean: Deletes Project.toml and Manifest.toml for a fresh start" | ||
@echo | ||
|
||
env_with_cloned_repo r: | ||
@echo "Creating Julia environment by creating local clones of dependent repositories" | ||
@echo "Cloning the repositories" | ||
-cd ..; git clone "[email protected]:ProjectTorreyPines/OMAS.jl.git" | ||
@echo "Generating Project.toml and Manifest.toml" | ||
julia --project=. -e 'using Pkg; Pkg.rm("OMAS"); Pkg.develop(path="../OMAS.jl"); Pkg.instantiate()' | ||
|
||
env_with_git_url u: | ||
@echo "Creating Julia environment with the git urls without creating local clones" | ||
@echo "Generating Project.toml and Manifest.toml" | ||
julia --project=. -e 'using Pkg; Pkg.rm("OMAS"); Pkg.add(url="[email protected]:ProjectTorreyPines/OMAS.jl.git", rev="master"); Pkg.instantiate()' | ||
|
||
clean: | ||
@echo "Deleting Manifest.toml" | ||
-rm Manifest.toml |