diff --git a/Jamrules b/Jamrules index 4a4ca4e..dfe92c5 100644 --- a/Jamrules +++ b/Jamrules @@ -3,27 +3,34 @@ DIRLIST = $(TOP)/dirlist ; TEMPLATE = $(TOP)/template.xml ; rule Copy { - local tgt = $(1:D=$(SUBDIR)) ; - File $(tgt) : $(2) ; + local tgt = [ FGristFiles $(1) ] ; + local src = [ FGristFiles $(2) ] ; + MakeLocate $(tgt) : $(LOCATE_TARGET) ; + File $(tgt) : $(src) ; Clean clean : $(tgt) ; } rule AutoIndex { - local tgt = $(1:D=$(SUBDIR)) ; - local src = $(3:D=$(SUBDIR)) ; - local head = $(2:D=$(SUBDIR)) ; + local tgt = [ FGristFiles $(1) ] ; + local head = [ FGristFiles $(2) ] ; + local src = [ FGristFiles $(3) ] ; + + MakeLocate $(tgt) : $(LOCATE_TARGET) ; + SEARCH on $(head) = $(SEARCH_SOURCE) ; + SEARCH on $(src) = $(SEARCH_SOURCE) ; - HEAD on $(tgt) = $(head) ; Depends $(tgt) : $(src) $(head) $(DIRLIST) ; Clean clean : $(tgt) ; - DirList $(tgt) : $(src) ; + DirList $(tgt) : $(head) $(src) ; } rule Webify { local html ; - for i in $(1:D=$(SUBDIR)) { + for i in [ FGristFiles $(1) ] { html = $(i:S=.html) ; + MakeLocate $(html) : $(LOCATE_TARGET) ; + SEARCH on $(i) = $(SEARCH_SOURCE) ; Depends $(html) : $(i) $(TEMPLATE) $(MDWNTOHTML) ; Depends all : $(html) ; @@ -35,7 +42,7 @@ rule Webify { actions DirList { - $(DIRLIST) $(HEAD) $(2) > $(1) + $(DIRLIST) $(2) > $(1) } actions MdwnToHtml { diff --git a/template.xml b/template.xml index 5024479..b8d2eb2 100644 --- a/template.xml +++ b/template.xml @@ -24,7 +24,7 @@ divert(1)
- Neale Pickett <neale@woozle.org> + Neale Pickett <neale@woozle.org>