def make_man_update_target(manpage):
 man_dir = pjoin('docs', 'man')
 manpage_gz = (manpage + '.gz')
 manpath = pjoin(man_dir, manpage)
 manpath_gz = pjoin(man_dir, manpage_gz)
 gz_cmd = ('cd %(man_dir)s && gzip -9c %(manpage)s > %(manpage_gz)s' % locals())
 return (manpath_gz, [manpath], gz_cmd)

def make_man_update_target ( manpage ) : man_dir = pjoin ( 'docs' , 'man' ) manpage_gz = ( manpage + '.gz' ) manpath = pjoin ( man_dir , manpage ) manpath_gz = pjoin ( man_dir , manpage_gz ) gz_cmd = ( 'cd %(man_dir)s && gzip -9c %(manpage)s > %(manpage_gz)s' % locals ( ) ) return ( manpath_gz , [ manpath ] , gz_cmd )
return a target_update-compliant tuple for the given manpage .