2 man1_MANS=${MAN1:.mdoc=.${MANFMT}}
3 man3_MANS=${MAN3:.mdoc=.${MANFMT}}
6 EXTRA_DIST=${MANDOC} ${MAN} CMakeLists.txt handle_links links
8 MAN1= zipcmp.mdoc zipmerge.mdoc ziptool.mdoc
10 ZIP_SOURCE_GET_ARGS.mdoc \
18 zip_error_clear.mdoc \
19 zip_error_code_system.mdoc \
20 zip_error_code_zip.mdoc \
23 zip_error_get_sys_type.mdoc \
26 zip_error_strerror.mdoc \
27 zip_error_system_type.mdoc \
28 zip_error_to_data.mdoc \
29 zip_error_to_str.mdoc \
34 zip_file_extra_field_delete.mdoc \
35 zip_file_extra_field_get.mdoc \
36 zip_file_extra_field_set.mdoc \
37 zip_file_extra_fields_count.mdoc \
38 zip_file_get_comment.mdoc \
39 zip_file_get_error.mdoc \
40 zip_file_get_external_attributes.mdoc \
41 zip_file_rename.mdoc \
42 zip_file_set_comment.mdoc \
43 zip_file_set_encryption.mdoc \
44 zip_file_set_external_attributes.mdoc \
45 zip_file_set_mtime.mdoc \
46 zip_file_strerror.mdoc \
48 zip_fopen_encrypted.mdoc \
52 zip_get_archive_comment.mdoc \
53 zip_get_archive_flag.mdoc \
55 zip_get_file_comment.mdoc \
57 zip_get_num_entries.mdoc \
58 zip_get_num_files.mdoc \
59 zip_name_locate.mdoc \
62 zip_register_progress_callback.mdoc \
63 zip_set_archive_comment.mdoc \
64 zip_set_archive_flag.mdoc \
65 zip_set_default_password.mdoc \
66 zip_set_file_comment.mdoc \
67 zip_set_file_compression.mdoc \
69 zip_source_begin_write.mdoc \
70 zip_source_buffer.mdoc \
71 zip_source_close.mdoc \
72 zip_source_commit_write.mdoc \
73 zip_source_error.mdoc \
74 zip_source_file.mdoc \
75 zip_source_filep.mdoc \
76 zip_source_free.mdoc \
77 zip_source_function.mdoc \
78 zip_source_is_deleted.mdoc \
79 zip_source_keep.mdoc \
80 zip_source_make_command_bitmap.mdoc \
81 zip_source_open.mdoc \
82 zip_source_read.mdoc \
83 zip_source_rollback_write.mdoc \
84 zip_source_seek.mdoc \
85 zip_source_seek_compute_offset.mdoc \
86 zip_source_seek_write.mdoc \
87 zip_source_stat.mdoc \
88 zip_source_tell.mdoc \
89 zip_source_tell_write.mdoc \
90 zip_source_win32a.mdoc \
91 zip_source_win32handle.mdoc \
92 zip_source_win32w.mdoc \
93 zip_source_write.mdoc \
98 zip_unchange_all.mdoc \
99 zip_unchange_archive.mdoc
101 install-data-hook: link-man3
105 link-man3: install-man3 uninstall-hook
106 @${srcdir}/handle_links install directory=${DESTDIR}${man3dir} extension=3 command="${LN}" file=${srcdir}/links
109 @${srcdir}/handle_links uninstall directory=${DESTDIR}${man3dir} extension=3 command="rm -f" file=${srcdir}/links
112 @${srcdir}/handle_links uninstall directory=. extension=html command="rm -f" file=${srcdir}/links
113 @${srcdir}/handle_links install directory=. extension=html command="${LN}" file=${srcdir}/links
115 MANDOC=${MAN1} ${MAN3}
116 HTML=${MANDOC:.mdoc=.html}
117 MAN=${MANDOC:.mdoc=.man}
119 SUFFIXES=.man .mdoc .html
121 .PHONY: mkman update-errors
124 mkhtml: ${HTML} link-html
126 mkdocset: mkdocset.pl ${HTML}
127 SRCDIR=${srcdir} perl ${srcdir}/mkdocset.pl ${HTML}
130 sh $(srcdir)/make_zip_errors.sh $(srcdir)/../lib/zip.h zip_errors.mdoc
133 mandoc -T man $< | sed '/TH/s,"NetBSD [^"]*","NiH",' > $@.$$$$ && mv $@.$$$$ $@
136 mandoc -Thtml -Oman="%N.html",style=../nih-man.css $< | ${srcdir}/fix-man-links.sh > $@.$$$$ && mv $@.$$$$ $@