Skip to content

Commit ac68bc5

Browse files
committed
add proper make clean support for docs folder
1 parent 87b5a38 commit ac68bc5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

octproz_project/octproz/pri/docs.pri

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,13 @@ win32{
3636
#/I "assume destination is a directory if copying more than one file"
3737
QMAKE_POST_LINK += $$quote(xcopy $$shell_path($$PWD/$$DOCDIR) $$DOCEXPORTDIR /E /Y /I $$escape_expand(\\n\\t))
3838
}
39+
40+
#add docs folder to clean directive so that it will be deleted when running "make clean"
41+
unix{
42+
cleandocs.commands = rm -rf $$shell_path($$DOCEXPORTDIR)
43+
}
44+
win32{
45+
cleandocs.commands = if exist $$shell_path($$DOCEXPORTDIR) rmdir /S /Q $$shell_path($$DOCEXPORTDIR)
46+
}
47+
clean.depends = cleandocs
48+
QMAKE_EXTRA_TARGETS += clean cleandocs

0 commit comments

Comments
 (0)