# Last edited on 2013-12-07 16:25:54 by stolfilocal

REPORT := 2013-11-15-msg

all: make_report ship_report


make_report: ${REPORT}.html

${REPORT}.html: ${REPORT}.sh
	rm -f .report-figs.dir
	./${REPORT}.sh > ${REPORT}.html
        
SHIP_DIR := ${HOME}/Dropbox/eeg_sinal_ghislain/2013-11-15-stolfi

ship_report: ${SHIP_DIR} ${REPORT}.html .report-figs.dir
	cp -avu ${REPORT}.html ${SHIP_DIR}/
	for ff in `cat .report-figs.dir` ; do \
          ff="./$${ff}"; sub="${SHIP_DIR}/$${ff%/*}" ; file="$${ff##*/}" ; \
          mkdir -p $${sub} ; \
          cp -avu $${ff} $${sub}/ ; \
        done