ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildFile.pm
(Generate patch)

Comparing COMP/SCRAM/src/BuildFile.pm (file contents):
Revision 1.21.2.23 by williamc, Wed Oct 13 14:12:07 1999 UTC vs.
Revision 1.21.2.26 by williamc, Wed Oct 13 16:47:30 1999 UTC

# Line 77 | Line 77 | sub ParseBuildFile {
77   #               "$ENV{LOCALTOP}/$ENV{INTwork}/${path}/BuildFile.mk\n";
78          $ENV{LatestBuildFile}="$ENV{LOCALTOP}/$ENV{INTwork}/${path}/BuildFile.mk";
79          $switch->parse(); # sort out supported tags
80 +        if ( $numbins > 0 ) {
81 +         print GNUmakefile <<ENDTEXT;
82 + ifndef BINMODE
83 + help::
84 + \t\@echo Generic Binary targets
85 + \t\@echo ----------------------
86 + endif
87 + ENDTEXT
88 +         foreach $target ( keys %$targettypes ) {
89 +         print GNUmakefile <<ENDTEXT;
90 + ifndef BINMODE
91 + help::
92 + \t\@echo $target
93 + endif
94 + ENDTEXT
95 +         }
96 +        }
97          close GNUmakefile;
98   }
99  
# Line 186 | Line 203 | ifndef BINMODE
203  
204   define stepdown_$$hashref{'name'}
205   if [ -d "$ENV{LOCALTOP}/$ENV{INTwork}/${path}/$dirname" ]; then \\
189 echo - Invoking binary makefile \$\@ for $dirname; \\
206   cd $ENV{LOCALTOP}/$ENV{INTwork}/${path}/$dirname; \\
207   \$(MAKE) BINMODE=true LatestBuildFile=$ENV{LOCALTOP}/$ENV{INTwork}/${path}/$dirname/BuildFile.mk workdir=\$(workdir)/$dirname -f \$(TOOL_HOME)/basics.mk \$\@; \\
208   fi
193 echo - Finished binary makefile \$\@
209   endef
210  
211   define stepdown2_$$hashref{'name'}
212   if [ -d "$ENV{LOCALTOP}/$ENV{INTwork}/${path}/$dirname" ]; then \\
198 echo - Invoking binary makefile \$\@ for $dirname; \\
213   cd $ENV{LOCALTOP}/$ENV{INTwork}/${path}/$dirname; \\
214   \$(MAKE) BINMODE=true LatestBuildFile=$ENV{LOCALTOP}/$ENV{INTwork}/${path}/$dirname/BuildFile.mk workdir=\$(workdir)/$dirname -f \$(TOOL_HOME)/basics.mk \$\*; \\
215   fi
216 < echo - Finished binary makefile \$\@
216 >
217   endef
218  
219   bin_$$hashref{'name'}_%:: dummy
# Line 208 | Line 222 | bin_$$hashref{'name'}_%:: dummy
222   echo_%:: dummy
223          \@\$(stepdown_$$hashref{'name'})
224  
225 < bin bin_debug bin_debug_local bin_insure bin_Insure clean $$hashref{'name'}:: dummy
225 > $$hashref{'name'}_%:: dummy
226 >        \@\$(stepdown_$$hashref{'name'})
227 >
228 > help bin bin_debug bin_debug_local bin_insure bin_Insure clean $$hashref{'name'}:: dummy
229          \@\$(stepdown_$$hashref{'name'})
230   endif
231  
# Line 230 | Line 247 | endif
247   # debuggging target
248   $$hashref{'name'}_echo_% :: echo_%
249  
250 + # help targets
251 + help::
252 + \t\@echo Targets For $$hashref{'name'}
253 + \t\@echo -------------------------------------
254 + \t\@echo $$hashref{'name'}  - default build
255 + \t\@echo bin_$$hashref{'name'}_clean - executable specific cleaning
256   ENDTEXT
257  
258   # Make generic rules for each type
# Line 250 | Line 273 | endif
273   $target ::$$hashref{name}_$$targettypes{$target}
274  
275   bintargets+=$$hashref{name}_$$targettypes{$target}
276 + help::
277 + \t\@echo $$hashref{name}_$$targettypes{$target}
278   clean::
279   \t\@if [ -f \$(binarystore)/$$hashref{name}_$$targettypes{$target} ]; then \\
280   \techo Removing \$(binarystore)/$$hashref{name}; \\

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines