Alexandre Julliard : makedep: Expand the script names into the generated rules.

Alexandre Julliard julliard at winehq.org
Fri Jan 10 13:22:45 CST 2014


Module: wine
Branch: master
Commit: 09a75310daf932663683d78ba3969884ca8adbfb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=09a75310daf932663683d78ba3969884ca8adbfb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jan 10 12:53:15 2014 +0100

makedep: Expand the script names into the generated rules.

---

 Make.vars.in    |    3 ---
 tools/makedep.c |   15 ++++++++-------
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/Make.vars.in b/Make.vars.in
index d704687..75cb1e6 100644
--- a/Make.vars.in
+++ b/Make.vars.in
@@ -50,9 +50,6 @@ CROSSTARGET     = @CROSSTARGET@
 LINGUAS         = @LINGUAS@
 ALL_MO_FILES    = $(LINGUAS:%=@top_builddir@/po/%.mo)
 PORCFLAGS       = @PORCFLAGS@
-BUILDIMAGE      = $(top_srcdir)/tools/buildimage
-C2MAN           = $(top_srcdir)/tools/c2man.pl
-RUNTEST         = $(top_srcdir)/tools/runtest
 RUNTESTFLAGS    = -q -P wine
 MAKECTESTS      = $(TOOLSDIR)/tools/make_ctests$(TOOLSEXT)
 MAKEXFTMPL      = $(TOOLSDIR)/tools/make_xftmpl$(TOOLSEXT)
diff --git a/tools/makedep.c b/tools/makedep.c
index c06f80c..c968187 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -1585,8 +1585,8 @@ static struct strarray output_sources(void)
             if (convert && rsvg && icotool && !src_dir)
             {
                 output( "%s.ico %s.bmp: %s\n", obj, obj, source->filename );
-                output( "\tCONVERT=\"%s\" ICOTOOL=\"%s\" RSVG=\"%s\" $(BUILDIMAGE) %s $@\n",
-                        convert, icotool, rsvg, source->filename );
+                output( "\tCONVERT=\"%s\" ICOTOOL=\"%s\" RSVG=\"%s\" %s %s $@\n",
+                        convert, icotool, rsvg, top_dir_path( "tools/buildimage" ), source->filename );
             }
             free( convert );
             free( rsvg );
@@ -1631,7 +1631,8 @@ static struct strarray output_sources(void)
             {
                 strarray_add( &test_files, source->name );
                 output( "%s.ok:\n", obj );
-                output( "\t$(RUNTEST) $(RUNTESTFLAGS) -T %s -M %s -p %s%s %s && touch $@\n", top_obj_dir,
+                output( "\t%s $(RUNTESTFLAGS) -T %s -M %s -p %s%s %s && touch $@\n",
+                        top_dir_path( "tools/runtest" ), top_obj_dir,
                         testdll, replace_extension( testdll, ".dll", "_test.exe" ), dllext, obj );
             }
             if (!strcmp( ext, "c" ) && !(source->flags & FLAG_GENERATED))
@@ -1784,25 +1785,25 @@ static struct strarray output_sources(void)
                 char *manext = get_expanded_make_variable( "api_manext" );
 
                 output( "manpages::\n" );
-                output( "\t$(C2MAN) -w %s -R%s", spec_file, top_obj_dir );
+                output( "\t%s -w %s -R%s", top_dir_path( "tools/c2man.pl" ), spec_file, top_obj_dir );
                 output_filename( strmake( "-I%s", top_dir_path( "include" )));
                 output_filename( strmake( "-o %s/documentation/man%s", top_obj_dir, manext ? manext : "3w" ));
                 output_filenames( c2man_files );
                 output( "\n" );
                 output( "htmlpages::\n" );
-                output( "\t$(C2MAN) -Th -w %s -R%s", spec_file, top_obj_dir );
+                output( "\t%s -Th -w %s -R%s", top_dir_path( "tools/c2man.pl" ), spec_file, top_obj_dir );
                 output_filename( strmake( "-I%s", top_dir_path( "include" )));
                 output_filename( strmake( "-o %s/documentation/html", top_obj_dir ));
                 output_filenames( c2man_files );
                 output( "\n" );
                 output( "sgmlpages::\n" );
-                output( "\t$(C2MAN) -Ts -w %s -R%s", spec_file, top_obj_dir );
+                output( "\t%s -Ts -w %s -R%s", top_dir_path( "tools/c2man.pl" ), spec_file, top_obj_dir );
                 output_filename( strmake( "-I%s", top_dir_path( "include" )));
                 output_filename( strmake( "-o %s/documentation/api-guide", top_obj_dir ));
                 output_filenames( c2man_files );
                 output( "\n" );
                 output( "xmlpages::\n" );
-                output( "\t$(C2MAN) -Tx -w %s -R%s", spec_file, top_obj_dir );
+                output( "\t%s -Tx -w %s -R%s", top_dir_path( "tools/c2man.pl" ), spec_file, top_obj_dir );
                 output_filename( strmake( "-I%s", top_dir_path( "include" )));
                 output_filename( strmake( "-o %s/documentation/api-guide-xml", top_obj_dir ));
                 output_filenames( c2man_files );




More information about the wine-cvs mailing list