Jamrules now more Jam-y.

This commit is contained in:
Neale Pickett 2009-11-12 15:51:16 -06:00
parent 5c119e96c2
commit d4ac728d0f
2 changed files with 17 additions and 10 deletions

View File

@ -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 {

View File

@ -24,7 +24,7 @@ divert(1)
</ul>
<address>
Neale Pickett &lt;<a href="mailto: neale&#64;woozle&#46;org">neale&#64;woozle&#46;org</a>&gt;
Neale Pickett &lt;<a href="mailto:neale&#64;woozle&#46;org">neale&#64;woozle&#46;org</a>&gt;
</address>
</body>
</html>