Permalink
Browse files

Delete auto-generated documentation folders in 'make clean' target.

  • Loading branch information...
1 parent 29edd1e commit 7fd2dbd94a257ace13b3cdd0f684a512d8451414 @polyethene committed Jun 27, 2010
Showing with 6 additions and 0 deletions.
  1. +4 −0 Makefile
  2. +2 −0 make.bat
View
@@ -8,6 +8,7 @@ outdir=bin
deploy=Deploy/$(outdir)/$(config)
setup=$(deploy)/Setup.exe
installer=$(deploy)/setup.sh
+sitedocs=$(name)/Site/docs/commands
.PHONY=all docs docs dist install uninstall clean
@@ -33,3 +34,6 @@ clean:
done; \
done;
if [ -d "$(outdir)" ]; then rm -R "$(outdir)"; fi
+ for dir in $(shell ls -d $(sitedocs)/*); do \
+ if [ -d "$${dir}" ]; then rm -R $${dir}; fi \
+ done;
View
@@ -15,6 +15,7 @@ CALL :vs
SET name=IronAHK
SET config=Release
SET outpre=bin
+SET sitedocs=%name%\Site\docs\commands
GOTO :eof
:vs
@@ -42,4 +43,5 @@ FOR /D %%G IN ("*") DO (
RMDIR /Q /S "%%G\obj" 2>NUL
)
IF EXIST "%outpre%" RMDIR /Q /S "%outpre%"
+FOR /F %%d in ('DIR /AD /B "%sitedocs%"') DO RMDIR /Q /S "%sitedocs%\%%d"
GOTO :eof

0 comments on commit 7fd2dbd

Please sign in to comment.