From ad6e30466775d5ebeafca2eb7a45c73482400c12 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Thu, 24 Jun 2010 19:54:17 +0000 Subject: Added build dependency for imported sources git-svn-id: http://pugixml.googlecode.com/svn/trunk@537 99668b35-9821-0410-8761-19e4c4f06640 --- Jamrules.jam | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Jamrules.jam b/Jamrules.jam index 6d7d0e4..6dfba7d 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -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) ; -- cgit v1.2.3