mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
plugins: add and install built-in plugin dir, add clear and disable options.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
ac5002a79e
commit
eb03b33655
8
Makefile
8
Makefile
@@ -401,6 +401,7 @@ exec_prefix = $(prefix)
|
||||
bindir = $(exec_prefix)/bin
|
||||
libexecdir = $(exec_prefix)/libexec
|
||||
pkglibexecdir = $(libexecdir)/$(PKGNAME)
|
||||
plugindir = $(pkglibexecdir)/plugins
|
||||
datadir = $(prefix)/share
|
||||
docdir = $(datadir)/doc/$(PKGNAME)
|
||||
mandir = $(datadir)/man
|
||||
@@ -427,6 +428,7 @@ installdirs:
|
||||
@$(NORMAL_INSTALL)
|
||||
$(MKDIR_P) $(DESTDIR)$(bindir)
|
||||
$(MKDIR_P) $(DESTDIR)$(pkglibexecdir)
|
||||
$(MKDIR_P) $(DESTDIR)$(plugindir)
|
||||
$(MKDIR_P) $(DESTDIR)$(man1dir)
|
||||
$(MKDIR_P) $(DESTDIR)$(man5dir)
|
||||
$(MKDIR_P) $(DESTDIR)$(man7dir)
|
||||
@@ -446,11 +448,13 @@ PKGLIBEXEC_PROGRAMS = \
|
||||
lightningd/lightning_hsmd \
|
||||
lightningd/lightning_onchaind \
|
||||
lightningd/lightning_openingd
|
||||
PLUGINS=
|
||||
|
||||
install-program: installdirs $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(INSTALL_PROGRAM) $(BIN_PROGRAMS) $(DESTDIR)$(bindir)
|
||||
$(INSTALL_PROGRAM) $(PKGLIBEXEC_PROGRAMS) $(DESTDIR)$(pkglibexecdir)
|
||||
[ -z "$(PLUGINS)" ] || $(INSTALL_PROGRAM) $(PLUGINS) $(DESTDIR)$(plugindir)
|
||||
|
||||
MAN1PAGES = $(filter %.1,$(MANPAGES))
|
||||
MAN5PAGES = $(filter %.5,$(MANPAGES))
|
||||
@@ -472,6 +476,10 @@ uninstall:
|
||||
echo rm -f $(DESTDIR)$(bindir)/`basename $$f`; \
|
||||
rm -f $(DESTDIR)$(bindir)/`basename $$f`; \
|
||||
done
|
||||
@for f in $(PLUGINS); do \
|
||||
echo rm -f $(DESTDIR)$(plugindir)/`basename $$f`; \
|
||||
rm -f $(DESTDIR)$(plugindir)/`basename $$f`; \
|
||||
done
|
||||
@for f in $(PKGLIBEXEC_PROGRAMS); do \
|
||||
echo rm -f $(DESTDIR)$(pkglibexecdir)/`basename $$f`; \
|
||||
rm -f $(DESTDIR)$(pkglibexecdir)/`basename $$f`; \
|
||||
|
||||
Reference in New Issue
Block a user