Skip to content

Commit

Permalink
Merge pull request #388 from ProjectTorreyPines/makefile_realpath
Browse files Browse the repository at this point in the history
realpath as Makefile function
  • Loading branch information
orso82 authored Aug 9, 2023
2 parents 7ffbb65 + 6f645f5 commit 3e654ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ header:

# =========================

JULIA_DIR ?= $(shell realpath $(HOME)/.julia)
realpath = $(shell cd $(dir $(1)); pwd)/$(notdir $(1))
JULIA_DIR ?= $(call realpath,$(HOME)/.julia)
JULIA_CONF := $(JULIA_DIR)/config/startup.jl
JULIA_PKG_REGDIR ?= $(JULIA_DIR)/registries
JULIA_PKG_DEVDIR ?= $(JULIA_DIR)/dev
Expand Down Expand Up @@ -62,10 +63,10 @@ threads:

# remove everything under $HOME/.julia besides $HOME/.julia/dev
nuke_julia:
mv $(JULIA_PKG_DEVDIR) $(shell realpath $(JULIA_DIR)/../asddsaasddsa)
mv $(JULIA_PKG_DEVDIR) $(call realpath,$(JULIA_DIR)/../asddsaasddsa)
rm -rf $(JULIA_DIR)
mkdir -p $(JULIA_DIR)
mv $(shell realpath $(JULIA_DIR)/../asddsaasddsa) $(JULIA_PKG_DEVDIR)
mv $(call realpath,$(JULIA_DIR)/../asddsaasddsa) $(JULIA_PKG_DEVDIR)

# install the GAregistry to the list of Julia registries
registry:
Expand Down

0 comments on commit 3e654ef

Please sign in to comment.