File tree 3 files changed +21
-2
lines changed
3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -800,10 +800,10 @@ installdirs:
800
800
801
801
# $(PLUGINS) is defined in plugins/Makefile.
802
802
803
- install-program : installdirs $(BIN_PROGRAMS ) $(PKGLIBEXEC_PROGRAMS ) $(PLUGINS ) $(PY_PLUGINS )
803
+ install-program : installdirs $(BIN_PROGRAMS ) $(PKGLIBEXEC_PROGRAMS ) $(PLUGINS ) $(PY_PLUGINS ) $( PLUGIN_REQUIREMENTS_TXT )
804
804
@$(NORMAL_INSTALL )
805
805
$(INSTALL_PROGRAM ) $(BIN_PROGRAMS ) $(DESTDIR )$(bindir )
806
- $(INSTALL_PROGRAM ) $(PKGLIBEXEC_PROGRAMS ) $(DESTDIR )$(pkglibexecdir )
806
+ $(INSTALL_PROGRAM ) $(PKGLIBEXEC_PROGRAMS ) $(PLUGIN_REQUIREMENTS_TXT ) $( DESTDIR )$(pkglibexecdir )
807
807
[ -z " $( PLUGINS) " ] || $(INSTALL_PROGRAM ) $(PLUGINS ) $(DESTDIR )$(plugindir )
808
808
for PY in $( PY_PLUGINS) ; do DIR=` dirname $$ PY` ; DST=$( DESTDIR) $( plugindir) /` basename $$ DIR` ; if [ -d $$ DST ]; then rm -rf $$ DST; fi ; $( INSTALL_PROGRAM) -d $$ DIR; cp -a $$ DIR $$ DST ; done
809
809
@@ -882,6 +882,10 @@ uninstall:
882
882
$(ECHO ) rm -f $(DESTDIR )$(docdir ) /` basename $$ f` ; \
883
883
rm -f $(DESTDIR )$(docdir ) /` basename $$ f` ; \
884
884
done
885
+ @for f in $(PLUGIN_REQUIREMENTS_TXT ) ; do \
886
+ $(ECHO ) rm -f $(DESTDIR )$(pkglibexecdir ) /` basename $$ f` ; \
887
+ rm -f $(DESTDIR )$(pkglibexecdir ) /` basename $$ f` ; \
888
+ done
885
889
886
890
installcheck : all-programs
887
891
@rm -rf testinstall || true
Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ recover
19
19
cln-askrene
20
20
recklessrpc
21
21
exposesecret
22
+ clnrest-requirements.txt
23
+ wss-proxy-requirements.txt
Original file line number Diff line number Diff line change @@ -303,8 +303,21 @@ ifneq ($(RUST),0)
303
303
DEFAULT_TARGETS += $(CLN_PLUGIN_EXAMPLES ) plugins/cln-grpc
304
304
endif
305
305
306
+ ifneq ($(NO_PYTHON ) , 1)
307
+ PLUGIN_REQUIREMENTS_TXT := plugins/wss-proxy-requirements.txt plugins/clnrest-requirements.txt
308
+ plugins/wss-proxy-requirements.txt : plugins/wss-proxy/pyproject.toml plugins/wss-proxy/poetry.lock
309
+ cd plugins/wss-proxy && poetry export --without-hashes > ../../$@
310
+
311
+
312
+ plugins/clnrest-requirements.txt : plugins/clnrest/pyproject.toml plugins/clnrest/poetry.lock
313
+ cd plugins/clnrest && poetry export --without-hashes > ../../$@
314
+
315
+ all-programs : $(PLUGIN_REQUIREMENTS_TXT )
316
+ endif
317
+
306
318
clean : plugins-clean
307
319
plugins-clean :
320
+ $(RM ) $(PLUGIN_REQUIREMENTS_TXT )
308
321
$(RM ) $(PLUGINS ) $(CLN_PLUGIN_EXAMPLES )
309
322
$(RM ) plugins/sql-schema_gen.h
310
323
You can’t perform that action at this time.
0 commit comments