Jamrules now more Jam-y.
This commit is contained in:
parent
5c119e96c2
commit
d4ac728d0f
25
Jamrules
25
Jamrules
|
@ -3,27 +3,34 @@ DIRLIST = $(TOP)/dirlist ;
|
||||||
TEMPLATE = $(TOP)/template.xml ;
|
TEMPLATE = $(TOP)/template.xml ;
|
||||||
|
|
||||||
rule Copy {
|
rule Copy {
|
||||||
local tgt = $(1:D=$(SUBDIR)) ;
|
local tgt = [ FGristFiles $(1) ] ;
|
||||||
File $(tgt) : $(2) ;
|
local src = [ FGristFiles $(2) ] ;
|
||||||
|
MakeLocate $(tgt) : $(LOCATE_TARGET) ;
|
||||||
|
File $(tgt) : $(src) ;
|
||||||
Clean clean : $(tgt) ;
|
Clean clean : $(tgt) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
rule AutoIndex {
|
rule AutoIndex {
|
||||||
local tgt = $(1:D=$(SUBDIR)) ;
|
local tgt = [ FGristFiles $(1) ] ;
|
||||||
local src = $(3:D=$(SUBDIR)) ;
|
local head = [ FGristFiles $(2) ] ;
|
||||||
local head = $(2:D=$(SUBDIR)) ;
|
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) ;
|
Depends $(tgt) : $(src) $(head) $(DIRLIST) ;
|
||||||
Clean clean : $(tgt) ;
|
Clean clean : $(tgt) ;
|
||||||
DirList $(tgt) : $(src) ;
|
DirList $(tgt) : $(head) $(src) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
rule Webify {
|
rule Webify {
|
||||||
local html ;
|
local html ;
|
||||||
|
|
||||||
for i in $(1:D=$(SUBDIR)) {
|
for i in [ FGristFiles $(1) ] {
|
||||||
html = $(i:S=.html) ;
|
html = $(i:S=.html) ;
|
||||||
|
MakeLocate $(html) : $(LOCATE_TARGET) ;
|
||||||
|
SEARCH on $(i) = $(SEARCH_SOURCE) ;
|
||||||
|
|
||||||
Depends $(html) : $(i) $(TEMPLATE) $(MDWNTOHTML) ;
|
Depends $(html) : $(i) $(TEMPLATE) $(MDWNTOHTML) ;
|
||||||
Depends all : $(html) ;
|
Depends all : $(html) ;
|
||||||
|
@ -35,7 +42,7 @@ rule Webify {
|
||||||
|
|
||||||
|
|
||||||
actions DirList {
|
actions DirList {
|
||||||
$(DIRLIST) $(HEAD) $(2) > $(1)
|
$(DIRLIST) $(2) > $(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
actions MdwnToHtml {
|
actions MdwnToHtml {
|
||||||
|
|
|
@ -24,7 +24,7 @@ divert(1)
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<address>
|
<address>
|
||||||
Neale Pickett <<a href="mailto: neale@woozle.org">neale@woozle.org</a>>
|
Neale Pickett <<a href="mailto:neale@woozle.org">neale@woozle.org</a>>
|
||||||
</address>
|
</address>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue