summaryrefslogtreecommitdiff
path: root/prepare-source.mak
blob: ef27e1ed8abdebd75eaf2987d1b4bb3b772770dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
gen: conf proto.h man

conf: configure.sh config.h.in

configure.sh: configure.in aclocal.m4
	autoconf -o configure.sh

config.h.in: configure.in aclocal.m4
	autoheader && touch config.h.in

proto.h: *.c lib/compat.c
	cat *.c lib/compat.c | awk -f mkproto.awk >proto.h.new
	if diff proto.h proto.h.new >/dev/null 2>&1; then \
	  rm proto.h.new; \
	else \
	  mv proto.h.new proto.h; \
	fi

man: rsync.1 rsyncd.conf.5

rsync.1: rsync.yo
	yodl2man -o rsync.1 rsync.yo
	-./tweak_manpage rsync.1

rsyncd.conf.5: rsyncd.conf.yo
	yodl2man -o rsyncd.conf.5 rsyncd.conf.yo
	-./tweak_manpage rsyncd.conf.5