Skip to content

Commit

Permalink
chore(rules): Make sure path is usable from scripts that change worki…
Browse files Browse the repository at this point in the history
…ng directories
  • Loading branch information
alerque committed Oct 17, 2023
1 parent d149efb commit 4fdcaa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rules/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ IGNORES += $(DISTFILES) $(DISTDIRS)
SILEPATH ?= $(and $(SILE_PATH),$(subst ;,$( ),$(SILE_PATH)))
SILEPATH += $(BUILDDIR)
ifneq ($(PUBLISHERDIR),$(CASILEDIR))
SILEPATH += $(patsubst ./%,%,$(PUBLISHERDIR))
export PATH := $(PUBLISHERDIR)/scripts:$(PATH)
PUBLISHERDIRABS := $(realpath $(patsubst ./%,%,$(PUBLISHERDIR)))
SILEPATH += $(PUBLISHERDIRABS)
export PATH := $(PUBLISHERDIRABS)/scripts:$(PATH)
endif
SILEPATH += $(CASILEDIR)

Expand Down

0 comments on commit 4fdcaa2

Please sign in to comment.