@@ -1244,11 +1244,23 @@ 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+ ifeq ($(SKIP_SHARED_DEPS ) , 1)
1255+ $(RM) -r $(TARNAME)/android-patches
1256+ $(RM) -r $(TARNAME)/benchmark
1257+ $(RM) -r $(TARNAME)/doc
1258+ $(RM) -r $(TARNAME)/typings
1259+ else
12491260 mkdir -p $(TARNAME)/doc/api
12501261 cp doc/node.1 $(TARNAME)/doc/node.1
12511262 cp -r out/doc/api/* $(TARNAME)/doc/api/
1263+ endif
12521264 sed 's/fileset = fileset.intersection (fileset.gitTracked root)/fileset =/' tools/nix/v8.nix > $(TARNAME)/tools/nix/v8.nix
12531265 $(RM) -r $(TARNAME)/.editorconfig
12541266 $(RM) -r $(TARNAME)/.git*
@@ -1290,7 +1302,6 @@ endif
12901302 $(RM) -r $(TARNAME)/deps/v8/samples
12911303 $(RM) -r $(TARNAME)/deps/v8/tools/profviz
12921304 $(RM) -r $(TARNAME)/deps/v8/tools/run-tests.py
1293- $(RM) -r $(TARNAME)/doc/images # too big
12941305 $(RM) -r $(TARNAME)/test*.tap
12951306 $(RM) -r $(TARNAME)/tools/cpplint.py
12961307 $(RM) -r $(TARNAME)/tools/eslint
0 commit comments