-
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 #38 from ProjectTorreyPines/make
makefile clones without .jl in .julia/dev and more
- Loading branch information
Showing
1 changed file
with
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,18 @@ help: | |
@echo | ||
|
||
env_with_cloned_repo r: | ||
@echo "Pulling sample files using dvc" | ||
-dvc pull | ||
@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()' | ||
@echo "Cloning the repositories and generating Manifest.toml" | ||
-dn=$(shell dirname $(shell pwd)); \ | ||
if [[ "$${dn:(-10)}" == ".julia/dev" ]]; then rn="OMAS" ; else rn="OMAS.jl"; fi; \ | ||
git clone "[email protected]:ProjectTorreyPines/OMAS.jl.git" ../$${rn}; \ | ||
julia --project=. -e 'using Pkg; Pkg.rm("OMAS"); Pkg.develop(path="../'$${rn}'"); Pkg.instantiate()' | ||
|
||
env_with_git_url u: | ||
@echo "Pulling sample files using dvc" | ||
-dvc pull | ||
@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()' | ||
|