# Copyright (c) 2013-2014 Index Data ApS. http://indexdata.com PHANTOMJS_TIMEOUT=18 PHANTOMJS= ../node_modules/phantomjs/bin/phantomjs IMAGES= ./images SCREENSHOT_WIDTH_HEIGHT= 1200 1000 PERL_SCRIPTS= ../bin/bomb.pl PROG= ../phantom/screenshot.js MD5= $(shell which md5 md5sum) TIMEOUT=5 PHANTOMJS_URL= http://cph.koha.indexdata.com/cgi-bin/koha/opac-search.pl?q=sushi PHANTOMJS_URL= http://www.indexdata.com/ all: check clean: rm -f mkws-error.png mkws-error.html rm -f images/*.png distclean: clean test: check screenshot: file=$$(echo "${PHANTOMJS_URL}" | ${MD5} | perl -npe 's,\s.*,,'); \ ${PHANTOMJS} ${PROG} ${PHANTOMJS_URL} ${IMAGES}/$$file.png ${SCREENSHOT_WIDTH_HEIGHT} ${TIMEOUT} help: @echo "make [ all | clean | distclean ]" @echo " [ screenshots ]" @echo ""