Permalink
Browse files

Add distclean target

  • Loading branch information...
1 parent 05c428d commit f40706bfbd2777ab664e0b512fab390d8a259bdf @batterseapower committed Oct 31, 2010
Showing with 26 additions and 0 deletions.
  1. +26 −0 CMakeLists.txt
View
@@ -1,5 +1,31 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+# Add a distclean target to the generated makefile
+IF (UNIX)
+ ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
+ SET(DISTCLEANED
+ cmake.depends
+ cmake.check_depends
+ CMakeCache.txt
+ cmake.check_cache
+ *.cmake
+ Makefile
+ core core.*
+ gmon.out
+ *~
+ )
+
+ ADD_CUSTOM_COMMAND(
+ DEPENDS clean
+ COMMENT "distribution clean"
+ COMMAND rm
+ ARGS -Rf CMakeTmp ${DISTCLEANED}
+ TARGET distclean
+ )
+ENDIF(UNIX)
+
+
PROJECT(charsetdetect)
INCLUDE_DIRECTORIES(. nspr-emu mozilla/extensions/universalchardet/src/base/)

0 comments on commit f40706b

Please sign in to comment.