Asciidoc: Adapt Makefiles to new asciidoc man pages

This commit is contained in:
Mario Blättermann 2021-03-16 19:34:59 +01:00
parent 056fc17478
commit 34455501de
2 changed files with 18 additions and 2 deletions

View File

@ -190,6 +190,24 @@ $(PATHFILES): Makefile
$(edit_cmd) $${srcdir}$@.in >$@.tmp
@ mv $@.tmp $@
asciidoc_man_cmd = $(ASCIIDOCTOR)
-b manpage \
-a 'VERSION=$(VERSION)' \
-a 'ADJTIME_PATH=$(ADJTIME_PATH)'
CLEANFILES += $(dist_man_MANS)
EXTRA_DIST += $(dist_man_MANS:=.adoc)
$(dist_man_MANS): Makefile
@ rm -f $@
$(AM_V_at) $(MKDIR_P) $$(dirname $@)
$(AM_V_GEN) srcdir=''; \
test -f ./$@.adoc || srcdir=$(srcdir)/; \
$(asciidoc_man_cmd) $${srcdir}$@.adoc
gen-man: $(dist_man_MANS)
# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
dist-hook:

View File

@ -186,7 +186,6 @@ endif
if BUILD_RTCWAKE
usrsbin_exec_PROGRAMS += rtcwake
dist_man_MANS += sys-utils/rtcwake.8
PATHFILES += sys-utils/rtcwake.8
rtcwake_SOURCES = sys-utils/rtcwake.c
rtcwake_LDADD = $(LDADD) libcommon.la
endif
@ -482,7 +481,6 @@ sbin_PROGRAMS += hwclock
dist_man_MANS += \
sys-utils/hwclock.8 \
sys-utils/adjtime_config.5
PATHFILES += sys-utils/hwclock.8
hwclock_SOURCES = \
sys-utils/hwclock.c \
sys-utils/hwclock.h