Issue 66567 - dmake's treatment of .SUFFIXES
Summary: dmake's treatment of .SUFFIXES
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: dmake (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 19:07 UTC by quetschke
Modified: 2013-08-07 15:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description quetschke 2006-06-19 19:07:26 UTC
Dmake's man page claims that:

NOTE:   .SUFFIXES is ignored by dmake it is used here simply as an example.

but that is not true. .SUFFIX is treated as an alias for .SOURCE.

IMHO we should remove the special target .SUFFIXES and let the dmake complain
about it's usage.

(I just found it was used in settings.mk adding 24 "extensions" that were used
as possible existing directories where that were to be checked if a target
already existed. This might mave a measurable effect on OOo build time.)

Also dmakes own makefiles have to be checked for usage of .SUFFIXES.
Comment 1 quetschke 2006-07-10 22:03:40 UTC
Added a warning when .SUFFIXES was found, added a testcase and updated the man page.

Committed to dmake46.

@ause: Please verify.
Comment 2 hjs 2006-09-14 14:16:47 UTC
dmake.nc page 35:
"... or by using the .SUFFIXES list of suffixes ..."

may give the impression that .SUFFIXES still does something.
Comment 3 quetschke 2006-09-14 17:42:43 UTC
I changed that part of the makefile. (Committed to dmake46 with a wrong iz number
in the commit message :( )

@ause: Better now?
Comment 4 hjs 2006-09-14 18:45:07 UTC
yes
Comment 5 quetschke 2006-09-20 18:32:32 UTC
I committed this to dmake46. Now the warning is only shown if the commandline
switch -v[w] is used.

+++ dmake/rulparse.c    20 Sep 2006 17:26:44 -0000
@@ -1622,7 +1622,8 @@
       case 'S':
          if( !strncmp( tg, "SOURCE", 6 ) )     DB_RETURN( ST_SOURCE   );
          else if( !strncmp(tg, "SUFFIXES", 8 )) {
-            Warning( "The .SUFFIXES target has no special meaning and is
deprecated." );
+            if  (Verbose & V_WARNALL)
+               Warning( "The .SUFFIXES target has no special meaning and is
deprecated." );
             DB_RETURN( ST_SOURCE   );
         }
         break;


@ause: You might want to "re-verify" this issue.
Comment 6 shay 2006-09-21 09:42:48 UTC
Thanks for making the -v[w] change.  That's much appreciated.

I'm happy with dmake 4.6 now, and will upload a binary build of it as it
currently is to CPAN later today.
Comment 7 hjs 2007-01-03 12:05:10 UTC
.