Skip to content

Commit 457563c

Browse files
committed
tools: do not include HTML docs in slim tarball
Signed-off-by: Antoine du Hamel <[email protected]>
1 parent 0a9b67e commit 457563c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,11 +1244,18 @@ pkg-upload: pkg
12441244
ssh $(STAGINGSERVER) "rclone copyto nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).pkg $(CLOUDFLARE_BUCKET)/nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).pkg"
12451245
ssh $(STAGINGSERVER) "touch nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).pkg.done"
12461246

1247-
$(TARBALL): release-only doc-only
1247+
TARBALL_DEPS=release-only
1248+
ifneq ($(SKIP_SHARED_DEPS), 1)
1249+
TARBALL_DEPS+= doc-only
1250+
endif
1251+
1252+
$(TARBALL): $(TARBALL_DEPS)
12481253
git checkout-index -a -f --prefix=$(TARNAME)/
1254+
ifneq ($(SKIP_SHARED_DEPS), 1)
12491255
mkdir -p $(TARNAME)/doc/api
12501256
cp doc/node.1 $(TARNAME)/doc/node.1
12511257
cp -r out/doc/api/* $(TARNAME)/doc/api/
1258+
endif
12521259
sed 's/fileset = fileset.intersection (fileset.gitTracked root)/fileset =/' tools/nix/v8.nix > $(TARNAME)/tools/nix/v8.nix
12531260
$(RM) -r $(TARNAME)/.editorconfig
12541261
$(RM) -r $(TARNAME)/.git*
@@ -1290,7 +1297,6 @@ endif
12901297
$(RM) -r $(TARNAME)/deps/v8/samples
12911298
$(RM) -r $(TARNAME)/deps/v8/tools/profviz
12921299
$(RM) -r $(TARNAME)/deps/v8/tools/run-tests.py
1293-
$(RM) -r $(TARNAME)/doc/images # too big
12941300
$(RM) -r $(TARNAME)/test*.tap
12951301
$(RM) -r $(TARNAME)/tools/cpplint.py
12961302
$(RM) -r $(TARNAME)/tools/eslint

0 commit comments

Comments
 (0)