summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-06-08 19:21:42 -0700
committerWayne Davison <wayne@opencoder.net>2020-06-08 21:03:42 -0700
commit53fae556521d035544ed8f0e968451ce6c60e664 (patch)
treef5ee1bed4e65dbcf6798174583bd4779a9215f3f /Makefile.in
parentbd66a92e7c21c70fa95b71a395438d853a9ab0b5 (diff)
downloadrsync-53fae556521d035544ed8f0e968451ce6c60e664.tar.gz
Change man page src format from yodl to markdown.
This removes the yodl dependency, which is sometimes hard to track down. Instead, this uses a python3 script that leverages the cmarkgfm library to turn the source file into html. Then, the script parses the html in order to turn the tag stream into a nroff stream using a simple state machine. While it's doing that it also implements one added format rule that turns an ordinal list that starts at 0 into a description list (since markdown doesn't have an easy description list idiom).
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in34
1 files changed, 10 insertions, 24 deletions
diff --git a/Makefile.in b/Makefile.in
index b45f3f47..e7f2f644 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -33,7 +33,8 @@ VERSION=@RSYNC_VERSION@
SIMD_x86_64=simd-checksum-x86_64.o lib/md5-asm-x86_64.o
-GENFILES=configure.sh aclocal.m4 config.h.in proto.h proto.h-tstamp rsync.1 rsync-ssl.1 rsyncd.conf.5
+GENFILES=configure.sh aclocal.m4 config.h.in proto.h proto.h-tstamp rsync.1 rsync.1.html \
+ rsync-ssl.1 rsync-ssl.1.html rsyncd.conf.5 rsyncd.conf.5.html
HEADERS=byteorder.h config.h errcode.h proto.h rsync.h ifuncs.h itypes.h inums.h \
lib/pool_alloc.h
LIBOBJ=lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/md5.o \
@@ -67,7 +68,7 @@ CHECK_OBJS=tls.o testrun.o getgroups.o getfsdev.o t_stub.o t_unsafe.o trimslash.
$(CC) -I. -I$(srcdir) $(CFLAGS) $(CPPFLAGS) -c $< @CC_SHOBJ_FLAG@
@OBJ_RESTORE@
-all: Makefile rsync$(EXEEXT) stunnel-rsyncd.conf @MAKE_MAN@
+all: Makefile rsync$(EXEEXT) stunnel-rsyncd.conf man
install: all
-${MKDIR_P} ${DESTDIR}${bindir}
@@ -214,31 +215,16 @@ proto.h: proto.h-tstamp
proto.h-tstamp: $(srcdir)/*.c $(srcdir)/lib/compat.c config.h
awk -f $(srcdir)/mkproto.awk $(srcdir)/*.c $(srcdir)/lib/compat.c
-man: rsync.1 rsync-ssl.1 rsyncd.conf.5 man-copy
+man: rsync.1 rsync-ssl.1 rsyncd.conf.5
-man-copy:
- @for fn in rsync.1 rsync-ssl.1 rsyncd.conf.5; do \
- if test -f $$fn; then \
- : ; \
- elif test -f $(srcdir)/$$fn; then \
- echo "Copying srcdir $$fn" ; \
- cp -p $(srcdir)/$$fn . ; \
- else \
- echo "NOTE: $$fn cannot be created." ; \
- fi ; \
- done
-
-rsync.1: rsync.yo $(srcdir)/tweak_manpage
- yodl2man -o rsync.1 $(srcdir)/rsync.yo
- -$(srcdir)/tweak_manpage rsync.1
+rsync.1: rsync.1.md md2man latest-year.h Makefile
+ @$(srcdir)/maybe-make-man $(srcdir) rsync.1.md
-rsync-ssl.1: rsync-ssl.yo $(srcdir)/tweak_manpage
- yodl2man -o rsync-ssl.1 $(srcdir)/rsync-ssl.yo
- -$(srcdir)/tweak_manpage rsync-ssl.1
+rsync-ssl.1: rsync-ssl.1.md md2man latest-year.h Makefile
+ @$(srcdir)/maybe-make-man $(srcdir) rsync-ssl.1.md
-rsyncd.conf.5: rsyncd.conf.yo $(srcdir)/tweak_manpage
- yodl2man -o rsyncd.conf.5 $(srcdir)/rsyncd.conf.yo
- -$(srcdir)/tweak_manpage rsyncd.conf.5
+rsyncd.conf.5: rsyncd.conf.5.md md2man latest-year.h Makefile
+ @$(srcdir)/maybe-make-man $(srcdir) rsyncd.conf.5.md
clean: cleantests
rm -f *~ $(OBJS) $(CHECK_PROGS) $(CHECK_OBJS) $(CHECK_SYMLINKS) \