Skip to content

Commit

Permalink
Makefile.am: create man page symlinks in install-data-hook recipe
Browse files Browse the repository at this point in the history
Attempting to create the symlinks during install-exec-hook was wrong, as
the installation directory for man pages has not yet been created at
that point.
  • Loading branch information
whitslack committed Mar 29, 2024
1 parent c89361d commit 3c43d81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@ endif

install-exec-hook:
cd $(DESTDIR)$(bindir) && { test -e bech32m$(EXEEXT) || $(LN_S) -n bech32$(EXEEXT) bech32m$(EXEEXT) ; }
cd $(DESTDIR)$(man1dir) && { test -e bech32m.1 || $(LN_S) -n bech32.1 bech32m.1 ; }
if !DISABLE_BLECH32
cd $(DESTDIR)$(bindir) && { \
test -e blech32$(EXEEXT) || $(LN_S) -n bech32$(EXEEXT) blech32$(EXEEXT) ; \
test -e blech32m$(EXEEXT) || $(LN_S) -n bech32$(EXEEXT) blech32m$(EXEEXT) ; \
}
endif

install-data-hook:
cd $(DESTDIR)$(man1dir) && { test -e bech32m.1 || $(LN_S) -n bech32.1 bech32m.1 ; }
if !DISABLE_BLECH32
cd $(DESTDIR)$(man1dir) && { \
test -e blech32.1 || $(LN_S) -n bech32.1 blech32.1 ; \
test -e blech32m.1 || $(LN_S) -n bech32.1 blech32m.1 ; \
Expand Down

0 comments on commit 3c43d81

Please sign in to comment.