mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
Makefile: Also install manpage for lightningd.
This commit is contained in:
parent
821832032d
commit
5dbff077c2
10
Makefile
10
Makefile
@ -467,6 +467,7 @@ mandir = $(datadir)/man
|
||||
man1dir = $(mandir)/man1
|
||||
man5dir = $(mandir)/man5
|
||||
man7dir = $(mandir)/man7
|
||||
man8dir = $(mandir)/man8
|
||||
|
||||
# Commands
|
||||
MKDIR_P = mkdir -p
|
||||
@ -491,6 +492,7 @@ installdirs:
|
||||
$(MKDIR_P) $(DESTDIR)$(man1dir)
|
||||
$(MKDIR_P) $(DESTDIR)$(man5dir)
|
||||
$(MKDIR_P) $(DESTDIR)$(man7dir)
|
||||
$(MKDIR_P) $(DESTDIR)$(man8dir)
|
||||
$(MKDIR_P) $(DESTDIR)$(docdir)
|
||||
|
||||
# Programs to install in bindir and pkglibexecdir.
|
||||
@ -518,13 +520,15 @@ install-program: installdirs $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS)
|
||||
MAN1PAGES = $(filter %.1,$(MANPAGES))
|
||||
MAN5PAGES = $(filter %.5,$(MANPAGES))
|
||||
MAN7PAGES = $(filter %.7,$(MANPAGES))
|
||||
MAN8PAGES = $(filter %.8,$(MANPAGES))
|
||||
DOC_DATA = README.md doc/INSTALL.md doc/HACKING.md LICENSE
|
||||
|
||||
install-data: installdirs $(MAN1PAGES) $(MAN5PAGES) $(MAN7PAGES) $(DOC_DATA)
|
||||
install-data: installdirs $(MAN1PAGES) $(MAN5PAGES) $(MAN7PAGES) $(MAN8PAGES) $(DOC_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(INSTALL_DATA) $(MAN1PAGES) $(DESTDIR)$(man1dir)
|
||||
$(INSTALL_DATA) $(MAN5PAGES) $(DESTDIR)$(man5dir)
|
||||
$(INSTALL_DATA) $(MAN7PAGES) $(DESTDIR)$(man7dir)
|
||||
$(INSTALL_DATA) $(MAN8PAGES) $(DESTDIR)$(man8dir)
|
||||
$(INSTALL_DATA) $(DOC_DATA) $(DESTDIR)$(docdir)
|
||||
|
||||
install: install-program install-data
|
||||
@ -555,6 +559,10 @@ uninstall:
|
||||
echo rm -f $(DESTDIR)$(man7dir)/`basename $$f`; \
|
||||
rm -f $(DESTDIR)$(man7dir)/`basename $$f`; \
|
||||
done
|
||||
@for f in $(MAN8PAGES); do \
|
||||
echo rm -f $(DESTDIR)$(man8dir)/`basename $$f`; \
|
||||
rm -f $(DESTDIR)$(man8dir)/`basename $$f`; \
|
||||
done
|
||||
@for f in $(DOC_DATA); do \
|
||||
echo rm -f $(DESTDIR)$(docdir)/`basename $$f`; \
|
||||
rm -f $(DESTDIR)$(docdir)/`basename $$f`; \
|
||||
|
Loading…
Reference in New Issue
Block a user