homepage/tartans/Jamfile

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2009-11-13 17:09:22 -07:00
SubDir TOP tartans ;
TARTAN_TMPL = $(SUBDIR)/tartan.m4 ;
TARTANTOMDWN = $(SUBDIR)/tartantomdwn ;
LSTARTANS = $(SUBDIR)/lstartans ;
2009-11-13 17:09:22 -07:00
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) ;
2009-11-13 17:09:22 -07:00
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) ;
}
2009-11-13 17:09:22 -07:00
actions TartanToMdwn {
$(TARTANTOMDWN) $(1:S=.png:D=img) $(TARTAN_TMPL) < $(2) > $(1)
2009-11-13 17:09:22 -07:00
}
actions TartanToPng {
$(LOOM) < $(2) > $(1)
}
Webify index.mdwn ;
2010-05-28 12:34:16 -06:00
Tartan albuquerque armstrong az blackwatch buchanan co nm nmloe nv ok pjs pjs2 shrek tx ut wa or ;