Skip to content

Commit

Permalink
Add env option to preserve existing TeX in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kosude committed Jun 13, 2024
1 parent e77631c commit 47b1ced
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@ TEXDIST_DST := $(BUILD_DIR)/tex
TEXDIST_UNPACK := $(SRC_DIR)/vendor/tex/unpack.sh

$(TEXDIST_DST): $(TEXDIST_SRC)
$(info No TeX distribution found in build output.)
ifneq "$(PRESERVE_TEX)" "1"
$(info Extracting TeX distribution)
mkdir -p $(TEXDIST_DST)
$(TEXDIST_UNPACK) $(TEXDIST_DST)
else
$(info PRESERVE_TEX=1 set, preserving any existing distribution)
endif


#
Expand Down

0 comments on commit 47b1ced

Please sign in to comment.