Skip to content

Commit

Permalink
WIP: Old release not checked-out
Browse files Browse the repository at this point in the history
  • Loading branch information
Joppe committed Mar 4, 2024
1 parent 1e18a91 commit 25cd8a5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -418,18 +418,16 @@ $/_HOME := $($/_HOME_DIR:./%=%)
$/_HERE_DIR := $(dir $(shell $(PYTHON) $/makemake.py --relpath $($/_HOME_DIR) $/.))
$/_HERE := $($/_HERE_DIR:./%=%)
$/_BASELINE := $(shell git describe --match=v[0-9]* --always --tags --abbrev=0)
_ := build/$($._BASELINE)/$($/_HERE)
$/_OLD := $($/_HOME)$_
$(info ifneq (,$(filter %$_,$/)))
define META
ifndef $_
$_ := $($/_HOME)$_
$/_SUBPROJECTS += $$_
$$_/Makefile:
ifndef $($/_HOME_DIR)
$($/_HOME_DIR) := $($($/_HOME_DIR))
$/_SUBPROJECTS += $($/_HOME)build/$($/_BASELINE)
$($/_HOME)build/$($/_BASELINE)/Makefile:
git worktree add -d $$(dir $$@) $($/_BASELINE)
endif
endef
$(eval $(META))
$/_OLD := $($/_HOME)build/$($/_BASELINE)/$($/_HERE)

## Colorize edited files by their git status
NORMAL ?= `tput sgr0`
Expand Down

0 comments on commit 25cd8a5

Please sign in to comment.