shithub: img

ref: 96efcddaa6c90f81e1e5ccaf6a49b35d935aec79
dir: /mkfile/

View raw version
MKSHELL=/bin/rc

years=\
	2008\
	2009\
	2013\
	2014\
	2015\
	2018\
	2019\
	2020\

dirs=\
	moto\
	guns\
	sssc\
	group-shoot\

fullsize=`{find $years $dirs -type f -name '*.full.*'}

montages=`{echo $years/^montage.jpg $dirs/^montage.jpg}

index.html:D: $montages ./mkindex.rc ./mkfile
	./mkindex.rc $years $dirs >index.html

%/montage.jpg: subdirs

subdirs:V:
	for(d in $years)@{
		cd $d
		mk -f ../year.mk
	}
	for(d in $dirs)@{
		cd $d
		mk -f ../album.mk
	}

html clean nuke:V:
	for(d in $years)@{
		cd $d
		mk -f ../year.mk $target
	}
	for(d in $dirs)@{
		cd $d
		mk -f ../album.mk $target
	}