man sample extended a little
[k8jam.git] / defaults / Jambase.locs
blobd3c48e4cb8a43582e0386ec3be2125608feac622
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, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
14 # set default 'locate' vars -- .zbuild/, etc
15 rule set-default-subdir-locates {
16   local bdir ;
17   local d = $(TOP) ;
19   if ! $(d) { d = '.' ; }
21   if $(BUILD_DIR) {
22     bdir = [ RemoveTrailingSlashes $(BUILD_DIR) ] ;
23   } else {
24     if $(BUILD_DIR_BASE) {
25       bdir = [ RemoveTrailingSlashes $(BUILD_DIR_BASE) ] ;
26     } else {
27       if $(WINDOZE) { bdir = .wbuild ; } else { bdir = .zbuild ; }
28     }
29     if $(TARGET_SUBDIR) { bdir = "$(bdir)$(PATH_SEPARATOR)$(TARGET_SUBDIR:J=$(PATH_SEPARATOR))" ; }
30     if $(USE_CLANG) { bdir = "$(bdir)$(PATH_SEPARATOR)_CLANG" ; }
31     if $(VALGRIND) { bdir = "$(bdir)$(PATH_SEPARATOR)_VALGRIND" ; }
32     if $(DIET) { bdir = "$(bdir)$(PATH_SEPARATOR)_DIET" ; }
33     if $(OPT_PROFILE) { bdir = "$(bdir)$(PATH_SEPARATOR)_$(OPT_PROFILE)" ; }
34     # D
35     if $(USE_DMD) { bdir = "$(bdir)$(PATH_SEPARATOR)_DMD" ; }
36     if $(UNITTEST) || $(UNITTESTS) { bdir = "$(bdir)$(PATH_SEPARATOR)_unittest" ; }
37     if $(RELEASE) { bdir = "$(bdir)$(PATH_SEPARATOR)_release" ; }
38     if $(NODEBUG) || $(NO_DEBUG) { bdir = "$(bdir)$(PATH_SEPARATOR)_nodebug" ; }
39   }
41   if [ HasRule user-set-subdir-locates ] { bdir = [ user-set-subdir-locates "$(bdir)" ] ; }
43   ALL_LOCATE_BIN = $(d) ;
44   ALL_LOCATE_LIBSO = $(d) ;
45   ALL_LOCATE_TARGET = "$(d)$(PATH_SEPARATOR)$(bdir)" ;
46   ALL_LOCATE_LIB = "$(d)$(PATH_SEPARATOR)$(bdir)$(PATH_SEPARATOR)_libs" ;
47   HCACHEFILE = "$(d)$(PATH_SEPARATOR)$(bdir)$(PATH_SEPARATOR).jamhdr.cache" ;
49   Clean clean : $(HCACHEFILE) ;
53 rule set-default-target-locations {
54   set-default-subdir-locates ;
57 rule set-default-locations {
58   set-default-subdir-locates ;
61 rule set-target-locations {
62   set-default-subdir-locates ;