include ../../rules/make.rules IMGFILES = ${wildcard *.png} ${wildcard *.gif} NAMES = big small all: @echo "doing $@" @for i in ${NAMES} ; do \ (echo "Entering $$i for $@" ; cd $$i ; ${MAKE} NAME=$$i DESTDIR=${DESTDIR} $@ ) ; \ done install: all copy.ok @echo "doing $@" @for i in ${NAMES} ; do \ (echo "Entering $$i for $@" ; cd $$i ; ${MAKE} NAME=$$i DESTDIR=${DESTDIR} $@ ) ; \ done copy.ok: ${IMGDIR} ${IMGFILES} @echo "installing files" @if [ -n "${IMGFILES}" ]; then cp ${IMGFILES} ${IMGDIR}; fi @date > $@ clean: @echo "doing $@" @for i in ${NAMES} ; do \ (echo "Entering $$i for $@" ; cd $$i ; ${MAKE} NAME=$$i DESTDIR=${DESTDIR} $@ ) ; \ done @rm -f *~; ${IMGDIR}: @echo "creating $@" @mkdir -p ${IMGDIR}