Add pacman-hooks.5 man page symlink
Improve discoverability of the alpm-hooks man page by adding a pacman-hooks symlink. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
886a6677a8
commit
033405c963
2 changed files with 16 additions and 1 deletions
|
@ -47,7 +47,8 @@ EXTRA_DIST = \
|
||||||
$(DOXYGEN_MANS)
|
$(DOXYGEN_MANS)
|
||||||
|
|
||||||
# Files that should be removed, but which Automake does not know.
|
# Files that should be removed, but which Automake does not know.
|
||||||
MOSTLYCLEANFILES = *.xml $(MANPAGES) $(HTML_DOCS) repo-remove.8 website.tar.gz
|
MOSTLYCLEANFILES = *.xml $(MANPAGES) $(HTML_DOCS) \
|
||||||
|
pacman-hooks.5 repo-remove.8 website.tar.gz
|
||||||
|
|
||||||
# Ensure manpages are fresh when building a dist tarball
|
# Ensure manpages are fresh when building a dist tarball
|
||||||
dist-hook:
|
dist-hook:
|
||||||
|
@ -140,12 +141,22 @@ repo-remove.8: repo-add.8
|
||||||
$(RM) repo-remove.8
|
$(RM) repo-remove.8
|
||||||
$(LN_S) repo-add.8 repo-remove.8
|
$(LN_S) repo-add.8 repo-remove.8
|
||||||
|
|
||||||
|
pacman-hooks.5: alpm-hooks.5
|
||||||
|
$(RM) pacman-hooks.5
|
||||||
|
$(LN_S) alpm-hooks.5 pacman-hooks.5
|
||||||
|
|
||||||
install-data-hook:
|
install-data-hook:
|
||||||
cd $(DESTDIR)$(mandir)/man8 && \
|
cd $(DESTDIR)$(mandir)/man8 && \
|
||||||
$(RM) repo-remove.8 && \
|
$(RM) repo-remove.8 && \
|
||||||
( $(LN_S) repo-add.8 repo-remove.8 || \
|
( $(LN_S) repo-add.8 repo-remove.8 || \
|
||||||
ln repo-add.8 repo-remove.8 || \
|
ln repo-add.8 repo-remove.8 || \
|
||||||
cp repo-add.8 repo-remove.8 )
|
cp repo-add.8 repo-remove.8 )
|
||||||
|
cd $(DESTDIR)$(mandir)/man5 && \
|
||||||
|
$(RM) pacman-hooks.5 && \
|
||||||
|
( $(LN_S) alpm-hooks.5 pacman-hooks.5 || \
|
||||||
|
ln alpm-hooks.5 pacman-hooks.5 || \
|
||||||
|
cp alpm-hooks.5 pacman-hooks.5 )
|
||||||
|
|
||||||
uninstall-hook:
|
uninstall-hook:
|
||||||
$(RM) $(DESTDIR)$(mandir)/man8/repo-remove.8
|
$(RM) $(DESTDIR)$(mandir)/man8/repo-remove.8
|
||||||
|
$(RM) $(DESTDIR)$(mandir)/man5/pacman-hooks.5
|
||||||
|
|
|
@ -129,6 +129,10 @@ meson.add_install_script(MESON_MAKE_SYMLINK,
|
||||||
'repo-add.8',
|
'repo-add.8',
|
||||||
join_paths(MANDIR, 'man8/repo-remove.8'))
|
join_paths(MANDIR, 'man8/repo-remove.8'))
|
||||||
|
|
||||||
|
meson.add_install_script(MESON_MAKE_SYMLINK,
|
||||||
|
'alpm-hooks.5',
|
||||||
|
join_paths(MANDIR, 'man5/pacman-hooks.5'))
|
||||||
|
|
||||||
doxygen = find_program('doxygen', required : get_option('doxygen'))
|
doxygen = find_program('doxygen', required : get_option('doxygen'))
|
||||||
if doxygen.found() and not get_option('doxygen').disabled()
|
if doxygen.found() and not get_option('doxygen').disabled()
|
||||||
doxyconf = configuration_data()
|
doxyconf = configuration_data()
|
||||||
|
|
Loading…
Add table
Reference in a new issue