Added build dependency for imported sources

git-svn-id: http://pugixml.googlecode.com/svn/trunk@537 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-06-24 19:54:17 +00:00
parent 4a6ddccc22
commit ad6e304667

View File

@ -599,11 +599,20 @@ rule Coverage TARGET : SOURCE
Depends $(TARGET) : $(SOURCE) ;
}
rule QuickbookImport SOURCE : IMPORT
{
Includes $(SOURCE) : $(SOURCE:D)/$(IMPORT) ;
}
rule Documentation TARGET : SOURCE
{
# escape colon with %3A because colon is a path list separator
local XSLDIR = [ Subst $(QUICKBOOK_PATH) : ":" : "%%%%3A" ] ;
# quickbook import scan
HDRRULE on $(SOURCE) = QuickbookImport ;
HDRSCAN on $(SOURCE) = "\\[import[ ]+([^]]*)\\]" ;
# quickbook -> boostbook
local BOOSTBOOK = $(BUILD)/$(SOURCE:S=.bb.xml) ;