ports/lang/node/patches/patch-Makefile

26 lines
984 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -186,7 +186,7 @@ config.gypi: configure configure.py src/node_version.h
fi
.PHONY: install
-install: all ## Installs node into $PREFIX (default=/usr/local).
+install: all build-pledge ## Installs node into $PREFIX (default=/usr/local).
$(PYTHON) tools/install.py $@ --dest-dir '$(DESTDIR)' --prefix '$(PREFIX)'
2023-08-16 22:26:55 +00:00
.PHONY: uninstall
@@ -433,6 +433,12 @@ test/addons/.buildstamp: $(ADDONS_PREREQS) \
2023-08-16 22:26:55 +00:00
# Just goes to show that recursive make really is harmful...
# TODO(bnoordhuis) Force rebuild after gyp update.
build-addons: | $(NODE_EXE) test/addons/.buildstamp
+
+build-pledge: $(NODE_EXE)
2023-09-26 17:06:53 +00:00
+ $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp.js rebuild \
2023-08-16 22:26:55 +00:00
+ --directory="deps/npm/node_modules/node-pledge" \
+ --nodedir="$(shell pwd)" && \
+ $(RM) -rf deps/npm/node_modules/node-pledge/build/Release/{.deps,../Makefile,obj.target}
JS_NATIVE_API_BINDING_GYPS := \
$(filter-out test/js-native-api/??_*/binding.gyp, \