From 52c843993d3cce706270cec7eb510da7b0643093 Mon Sep 17 00:00:00 2001 From: ketmar Date: Mon, 20 Feb 2012 01:52:15 +0200 Subject: [PATCH] no need to touch defaults/Jambase anymore, heh --- Jamrules | 22 ++++++++++++++++++++++ NOTES | 2 +- src/Jamfile | 3 +++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Jamrules b/Jamrules index 43db27a..60389bd 100644 --- a/Jamrules +++ b/Jamrules @@ -102,3 +102,25 @@ actions quietly AGitPush { git push hub git push gr } + + +rule IncFile { + local _t = [ FGristSourceFiles $(<) ] ; + #Echo "_t:" $(_t) ; + Includes $(_t) : $(>) ; +} + + +rule BuildFileList dir : mask { + local _lst = [ Glob $(dir) : $(mask) : files-only ] ; + local _dirs = [ Glob $(dir) : "[^_.]*" : dirs-only ] ; + local _dn _l ; + + for _dn in $(_dirs) { + #Echo "dir:" $(_dn) ; + _l = [ BuildFileList $(_dn) : $(mask) ] ; + _lst += $(_l) ; + } + + return $(_lst) ; +} diff --git a/NOTES b/NOTES index 94757c0..358d794 100644 --- a/NOTES +++ b/NOTES @@ -1 +1 @@ -* remember that you should 'touch' defaults/Jambase to trigger Jambase rebuilding +* remember that you should 'touch' defaults/Jambase to trigger Jambase rebuilding (obsolete, no more) diff --git a/src/Jamfile b/src/Jamfile index 16cfcdf..0121c16 100644 --- a/src/Jamfile +++ b/src/Jamfile @@ -19,6 +19,9 @@ Main unigen : unigen.c ; Main jam : jam.c jambase.c ; LinkLibraries jam : libjam.a ; GenFile jambase.c : mkjambase $(TOP)/defaults/Jambase ; +IncFile mkjambase.c : + [ BuildFileList "$(TOP)/defaults" : "Jam*" ] +; GenFile hsregexp_unicode_mapping.c : unigen $(TOP)/unidata/UnicodeData.txt ; ###if $(UNIX) { -- 2.11.4.GIT