Skip to content

Commit

Permalink
Tweak src/Makefile for subsequent rebuilds
Browse files Browse the repository at this point in the history
Fixes an issue rebuilding when `dist` has been removed.
  • Loading branch information
georgestagg committed Nov 29, 2023
1 parent c461e3b commit 6a66586
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ BASE_URL ?= "./"
PKG_BASE_URL ?= "https://repo.r-wasm.org"

HTML_DIST = $(addprefix $(DIST)/,$(HTML_TEMPLATES))
$(DIST): $(TS_SOURCES) $(HTML_DIST) \
$(DIST)/webr.mjs: $(TS_SOURCES) $(HTML_DIST) \
Makefile webR/config.ts node_modules esbuild.ts
cp $(DIST)/$(HTML_INDEX) $(DIST)/index.html
npm run build
touch $@

$(DIST)/%.html: templates/%.html
sed -e "s|@@BASE_URL@@|$(BASE_URL)|" \
Expand Down

0 comments on commit 6a66586

Please sign in to comment.