makefiles: Get rid of the documentation rules.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2022-01-19 16:18:33 +01:00
parent c562952f92
commit 9d494730fe
4 changed files with 13 additions and 2470 deletions

14
configure vendored
View File

@ -800,7 +800,6 @@ ac_ct_AR
AR AR
BISON BISON
FLEX FLEX
api_manext
SED_CMD SED_CMD
RUNTESTFLAGS RUNTESTFLAGS
MAKEDEP MAKEDEP
@ -6739,8 +6738,6 @@ RUNTESTFLAGS="-q -P wine"
SED_CMD="LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'" SED_CMD="LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"
api_manext=3w
if test -n "$host_alias" -a "$host_alias" != "$build_alias" if test -n "$host_alias" -a "$host_alias" != "$build_alias"
then then
@ -22835,11 +22832,7 @@ fi
wine_fn_append_rule "distclean:: clean wine_fn_append_rule "distclean:: clean
rm -rf autom4te.cache documentation/html documentation/api-guide documentation/api-guide-xml documentation/man\$(api_manext)" rm -rf autom4te.cache"
wine_fn_append_rule "install-manpages:: manpages
for i in documentation/man\$(api_manext)/*.\$(api_manext); do ${wine_srcdir}tools/install-sh -m 644 \$(INSTALL_DATA_FLAGS) \$\$i \$(DESTDIR)\$(mandir)/\$\$i; done"
wine_fn_append_rule "dlls/ntdll/unix/version.c: dummy wine_fn_append_rule "dlls/ntdll/unix/version.c: dummy
@ -23557,10 +23550,6 @@ wine_fn_output_makefile ()
# uninstall: uninstall everything # uninstall: uninstall everything
# ctags: create a tags file for vim and others. # ctags: create a tags file for vim and others.
# etags: create a TAGS file for Emacs. # etags: create a TAGS file for Emacs.
# manpages: compile manpages for Wine API
# htmlpages: compile html pages for Wine API
# sgmlpages: compile sgml source for the Wine API Guide
# xmlpages: compile xml source for the Wine API Guide
SHELL = $SHELL SHELL = $SHELL
PATH_SEPARATOR = $PATH_SEPARATOR PATH_SEPARATOR = $PATH_SEPARATOR
@ -23633,7 +23622,6 @@ toolsdir = $toolsdir
MAKEDEP = $MAKEDEP MAKEDEP = $MAKEDEP
RUNTESTFLAGS = $RUNTESTFLAGS RUNTESTFLAGS = $RUNTESTFLAGS
SED_CMD = $SED_CMD SED_CMD = $SED_CMD
api_manext = $api_manext
FLEX = $FLEX FLEX = $FLEX
BISON = $BISON BISON = $BISON
AR = $AR AR = $AR

View File

@ -250,7 +250,6 @@ AC_SUBST(toolsdir,[$wine_cv_toolsdir])
AC_SUBST(MAKEDEP,[$wine_makedep]) AC_SUBST(MAKEDEP,[$wine_makedep])
AC_SUBST(RUNTESTFLAGS,["-q -P wine"]) AC_SUBST(RUNTESTFLAGS,["-q -P wine"])
AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"]) AC_SUBST(SED_CMD,["LC_ALL=C sed -e 's,@bindir@,\${bindir},g' -e 's,@dlldir@,\${dlldir},g' -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g'"])
AC_SUBST(api_manext,[3w])
if test -n "$host_alias" -a "$host_alias" != "$build_alias" if test -n "$host_alias" -a "$host_alias" != "$build_alias"
then then
@ -3692,10 +3691,6 @@ AC_CONFIG_COMMANDS([Makefile], [wine_fn_output_makefile Makefile],
# uninstall: uninstall everything # uninstall: uninstall everything
# ctags: create a tags file for vim and others. # ctags: create a tags file for vim and others.
# etags: create a TAGS file for Emacs. # etags: create a TAGS file for Emacs.
# manpages: compile manpages for Wine API
# htmlpages: compile html pages for Wine API
# sgmlpages: compile sgml source for the Wine API Guide
# xmlpages: compile xml source for the Wine API Guide
m4_set_foreach([_AC_SUBST_VARS],[var],[var = $var m4_set_foreach([_AC_SUBST_VARS],[var],[var = $var
])$SET_MAKE ])$SET_MAKE
@ -3801,13 +3796,7 @@ dnl Rules for cleaning
WINE_APPEND_RULE( WINE_APPEND_RULE(
[distclean:: clean [distclean:: clean
rm -rf autom4te.cache documentation/html documentation/api-guide documentation/api-guide-xml documentation/man\$(api_manext)]) rm -rf autom4te.cache])
dnl Rules for API documentation
WINE_APPEND_RULE(
[install-manpages:: manpages
for i in documentation/man\$(api_manext)/*.\$(api_manext); do ${wine_srcdir}tools/install-sh -m 644 \$(INSTALL_DATA_FLAGS) \$\$i \$(DESTDIR)\$(mandir)/\$\$i; done])
dnl Rules for generated source files dnl Rules for generated source files

File diff suppressed because it is too large Load Diff

View File

@ -146,7 +146,6 @@ static const char *tools_dir;
static const char *tools_ext; static const char *tools_ext;
static const char *exe_ext; static const char *exe_ext;
static const char *dll_ext; static const char *dll_ext;
static const char *man_ext;
static const char *host_cpu; static const char *host_cpu;
static const char *pe_dir; static const char *pe_dir;
static const char *so_dir; static const char *so_dir;
@ -215,7 +214,6 @@ struct makefile
struct strarray unixobj_files; struct strarray unixobj_files;
struct strarray res_files; struct strarray res_files;
struct strarray font_files; struct strarray font_files;
struct strarray c2man_files;
struct strarray debug_files; struct strarray debug_files;
struct strarray dlldata_files; struct strarray dlldata_files;
struct strarray implib_files; struct strarray implib_files;
@ -3020,20 +3018,17 @@ static void output_source_default( struct makefile *make, struct incl_file *sour
output_filename( "$(CROSSCFLAGS)" ); output_filename( "$(CROSSCFLAGS)" );
output( "\n" ); output( "\n" );
} }
if (strendswith( source->name, ".c" ) && !(source->file->flags & FLAG_GENERATED)) if (make->testdll && !is_dll_src && strendswith( source->name, ".c" ) &&
!(source->file->flags & FLAG_GENERATED))
{ {
strarray_add( &make->c2man_files, source->filename ); strarray_add( &make->test_files, obj );
if (make->testdll && !is_dll_src) strarray_add( &make->ok_files, strmake( "%s.ok", obj ));
{ output( "%s.ok:\n", obj_dir_path( make, obj ));
strarray_add( &make->test_files, obj ); output( "\t%s%s $(RUNTESTFLAGS) -T . -M %s -p %s%s %s && touch $@\n",
strarray_add( &make->ok_files, strmake( "%s.ok", obj )); cmd_prefix( "TEST" ),
output( "%s.ok:\n", obj_dir_path( make, obj )); root_src_dir_path( "tools/runtest" ), make->testdll,
output( "\t%s%s $(RUNTESTFLAGS) -T . -M %s -p %s%s %s && touch $@\n", obj_dir_path( make, replace_extension( make->testdll, ".dll", "_test.exe" )),
cmd_prefix( "TEST" ), make->is_cross ? "" : dll_ext, obj );
root_src_dir_path( "tools/runtest" ), make->testdll,
obj_dir_path( make, replace_extension( make->testdll, ".dll", "_test.exe" )),
make->is_cross ? "" : dll_ext, obj );
}
} }
if (need_obj) output_filename( strmake( "%s.o", obj_dir_path( make, obj ))); if (need_obj) output_filename( strmake( "%s.o", obj_dir_path( make, obj )));
if (need_cross) output_filename( strmake( "%s.cross.o", obj_dir_path( make, obj ))); if (need_cross) output_filename( strmake( "%s.cross.o", obj_dir_path( make, obj )));
@ -3088,51 +3083,6 @@ static char *get_unix_lib_name( struct makefile *make )
} }
/*******************************************************************
* output_man_pages
*/
static void output_man_pages( struct makefile *make )
{
if (make->c2man_files.count)
{
char *spec_file = src_dir_path( make, replace_extension( make->module, ".dll", ".spec" ));
output( "manpages::\n" );
output( "\t%s -w %s", root_src_dir_path( "tools/c2man.pl" ), spec_file );
output_filename( strmake( "-R%s", root_src_dir_path( "" )));
output_filename( strmake( "-I%s", root_src_dir_path( "include" )));
output_filename( strmake( "-o documentation/man%s", man_ext ));
output_filenames( make->c2man_files );
output( "\n" );
output( "htmlpages::\n" );
output( "\t%s -Th -w %s", root_src_dir_path( "tools/c2man.pl" ), spec_file );
output_filename( strmake( "-R%s", root_src_dir_path( "" )));
output_filename( strmake( "-I%s", root_src_dir_path( "include" )));
output_filename( "-o documentation/html" );
output_filenames( make->c2man_files );
output( "\n" );
output( "sgmlpages::\n" );
output( "\t%s -Ts -w %s", root_src_dir_path( "tools/c2man.pl" ), spec_file );
output_filename( strmake( "-R%s", root_src_dir_path( "" )));
output_filename( strmake( "-I%s", root_src_dir_path( "include" )));
output_filename( "-o documentation/api-guide" );
output_filenames( make->c2man_files );
output( "\n" );
output( "xmlpages::\n" );
output( "\t%s -Tx -w %s", root_src_dir_path( "tools/c2man.pl" ), spec_file );
output_filename( strmake( "-R%s", root_src_dir_path( "" )));
output_filename( strmake( "-I%s", root_src_dir_path( "include" )));
output_filename( "-o documentation/api-guide-xml" );
output_filenames( make->c2man_files );
output( "\n" );
strarray_add( &make->phony_targets, "manpages" );
strarray_add( &make->phony_targets, "htmlpages" );
strarray_add( &make->phony_targets, "sgmlpages" );
strarray_add( &make->phony_targets, "xmlpages" );
}
}
/******************************************************************* /*******************************************************************
* output_module * output_module
*/ */
@ -3201,9 +3151,7 @@ static void output_module( struct makefile *make )
output_filename( make->is_cross ? "$(CROSSLDFLAGS)" : "$(LDFLAGS)" ); output_filename( make->is_cross ? "$(CROSSLDFLAGS)" : "$(LDFLAGS)" );
output( "\n" ); output( "\n" );
if (spec_file) if (*dll_ext && make->is_exe && !make->is_win16 && strendswith( make->module, ".exe" ))
output_man_pages( make );
else if (*dll_ext && !make->is_win16 && strendswith( make->module, ".exe" ))
{ {
char *binary = replace_extension( make->module, ".exe", "" ); char *binary = replace_extension( make->module, ".exe", "" );
add_install_rule( make, binary, "wineapploader", strmake( "t$(bindir)/%s", binary )); add_install_rule( make, binary, "wineapploader", strmake( "t$(bindir)/%s", binary ));
@ -4318,7 +4266,6 @@ int main( int argc, char *argv[] )
tools_dir = get_expanded_make_variable( top_makefile, "toolsdir" ); tools_dir = get_expanded_make_variable( top_makefile, "toolsdir" );
tools_ext = get_expanded_make_variable( top_makefile, "toolsext" ); tools_ext = get_expanded_make_variable( top_makefile, "toolsext" );
exe_ext = get_expanded_make_variable( top_makefile, "EXEEXT" ); exe_ext = get_expanded_make_variable( top_makefile, "EXEEXT" );
man_ext = get_expanded_make_variable( top_makefile, "api_manext" );
dll_ext = (exe_ext && !strcmp( exe_ext, ".exe" )) ? "" : ".so"; dll_ext = (exe_ext && !strcmp( exe_ext, ".exe" )) ? "" : ".so";
host_cpu = get_expanded_make_variable( top_makefile, "host_cpu" ); host_cpu = get_expanded_make_variable( top_makefile, "host_cpu" );
crosstarget = get_expanded_make_variable( top_makefile, "CROSSTARGET" ); crosstarget = get_expanded_make_variable( top_makefile, "CROSSTARGET" );
@ -4340,7 +4287,6 @@ int main( int argc, char *argv[] )
if (tools_dir && !strcmp( tools_dir, "." )) tools_dir = NULL; if (tools_dir && !strcmp( tools_dir, "." )) tools_dir = NULL;
if (!exe_ext) exe_ext = ""; if (!exe_ext) exe_ext = "";
if (!tools_ext) tools_ext = ""; if (!tools_ext) tools_ext = "";
if (!man_ext) man_ext = "3w";
if (host_cpu && (host_cpu = normalize_arch( host_cpu ))) if (host_cpu && (host_cpu = normalize_arch( host_cpu )))
{ {
so_dir = strmake( "$(dlldir)/%s-unix", host_cpu ); so_dir = strmake( "$(dlldir)/%s-unix", host_cpu );