homepage/tartans/Jamfile

51 lines
1.1 KiB
Plaintext

SubDir TOP tartans ;
TARTAN_TMPL = $(SUBDIR)/tartan.m4 ;
TARTANTOMDWN = $(SUBDIR)/tartantomdwn ;
LSTARTANS = $(SUBDIR)/lstartans ;
LOOM = $(SUBDIR)/loom.py ;
rule Tartan {
local tartans = [ FGristFiles $(1:S=.tartan) ] ;
DIRLIST on [ FGristFiles index.mdwn ] = $(LSTARTANS) ;
AutoIndex index.mdwn : index.head.mdwn : $(1:S=.tartan) ;
for t in $(tartans) {
local png = $(t:S=.png:D=img:G=) ;
local mdwn = $(t:S=.mdwn) ;
TartanToMdwn $(mdwn) : $(t) ;
TartanToPng $(png) : $(t) ;
Webify $(mdwn) ;
Depends $(mdwn:S=.html) : $(png) ;
}
}
rule TartanToMdwn {
Depends $(1) : $(2) $(TARTAN_TMPL) $(TARTANTOMDWN) ;
Clean clean : $(1) ;
MakeLocate $(1) : $(LOCATE_TARGET) ;
SEARCH on $(2) = $(SEARCH_SOURCE) ;
}
rule TartanToPng {
Depends $(1) : $(2) $(LOOM) ;
Clean clean : $(1) ;
MakeLocate $(1) : $(LOCATE_TARGET) ;
SEARCH on $(2) = $(SEARCH_SOURCE) ;
}
actions TartanToMdwn {
$(TARTANTOMDWN) $(1:S=.png:D=img) $(TARTAN_TMPL) < $(2) > $(1)
}
actions TartanToPng {
$(LOOM) < $(2) > $(1)
}
Webify index.mdwn ;
Tartan albuquerque armstrong az blackwatch buchanan co nm nmloe nv ok pjs pjs2 shrek tx ut wa ;