1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, version 3 of the License ONLY.
5 # This program is distributed in the hope that it will be useful,
6 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8 # GNU General Public License for more details.
10 # You should have received a copy of the GNU General Public License
11 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13 ## if 'distclean' in $(JAM_TARGETS) {
14 ## __DO_CONFIG_CLEAN__ = tan ;
15 ## JAM_TARGETS -= 'distclean' ;
16 ## if ! 'clean' in $(JAM_TARGETS) { JAM_TARGETS += 'clean' ; }
18 ## __DO_CONFIG_CLEAN__ = ;
20 Depends distclean : clean ;
23 if 'config' in $(JAM_TARGETS) || 'configure' in $(JAM_TARGETS) {
24 JAM_TARGETS = config ;
28 # convert 'target clean' to 'target_clean'
29 rule --normalize-cleans-- {
31 __DO_TARGET_CLEAN__ = ;
33 _nt = ; # new JAM_TARGETS
34 for _t in $(JAM_TARGETS) {
37 # have previous target
39 __DO_TARGET_CLEAN__ = tan ;
45 if $(_t) ~= '^.*_clean$' {
46 __DO_TARGET_CLEAN__ = tan ;
47 JAM_OPTION_MAKE_UPDATES_SILENT = tan ;
49 if $(_pt) { _nt += $(_pt) ; }
53 if $(_pt) { _nt += $(_pt) ; }
54 #Echo 'new targets:' $(_nt) ;
55 JAM_TARGETS = $(_nt) ;
59 --normalize-cleans-- ;
61 ##Echo '__DO_TARGET_CLEAN__:' "$(__DO_TARGET_CLEAN__)" ;
62 ##if $(__DO_TARGET_CLEAN__) { Echo '**************' ; }
77 if $(JAM_SILENT_TARGETS) anyin $(JAM_TARGETS) {
78 JAM_OPTION_MAKE_UPDATES_SILENT = tan ;