PERL_SCRIPTS= ../bin/bomb.pl
PROG= ../phantom/screenshot.js
MD5= $(shell which md5 md5sum)
+URL_FILE= koha.url
TIMEOUT=5
PHANTOMJS_URL= http://cph.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi
${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/tmp.$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT}; \
mv -f ${IMAGES}/tmp.$$file.png ${IMAGES}/$$file.png
-screenshots:
- for i in $$(cat url.txt); do \
- make PHANTOMJS_URL="$$i" TIMEOUT=4 screenshot; \
+screenshots: clean
+ for i in $$(cat ${URL_FILE}); do \
+ ${MAKE} PHANTOMJS_URL="$$i" TIMEOUT=4 screenshot; \
done; wait
- make index
+ ${MAKE} index
index:
cd ${IMAGES}; ls -tr *.png | perl -ne 'chomp; print qq{<h2>$$_</h2><img src="$$_"/><br/><br/><p/>\n}' > index.html