shithub: img

ref: 2fa650c0e4cbbf0777eb10d91c0f4018cada9bb1
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
	}