cleanup tmp dir
authorWolfram Schneider <wosch@indexdata.dk>
Mon, 7 Apr 2014 14:52:41 +0000 (14:52 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Mon, 7 Apr 2014 14:52:41 +0000 (14:52 +0000)
test/Makefile

index 2868490..72ed675 100644 (file)
@@ -12,15 +12,21 @@ PHANTOMJS=  ./node_modules/phantomjs/bin/phantomjs
 IMAGES=        ./images
 SCREENSHOT_WIDTH=      360 480 640 768 1024 1200 1440 2048
 PERL_SCRIPTS=  bomb.pl
+TMP_DIR=       ./logs
 
 all: check
 
 clean:
        rm -f mkws-error.png mkws-error.html images/*.png
 
-distclean: clean
+distclean: clean clean-tmp
        rm -rf node_modules
 
+clean-tmp:
+       rm -rf ${TMP_DIR}
+       mkdir -p ${TMP_DIR}
+       touch ${TMP_DIR}/.gitkeep
+
 mkws-complete-syntax-check:
        ${MAKE} -C../src mkws-complete.min.js