]> granicus.if.org Git - libevent/commitdiff
Adopt ignore rules for cmake + ninja
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 22 Apr 2018 21:26:08 +0000 (00:26 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 22 Apr 2018 21:38:19 +0000 (00:38 +0300)
In case we have build directory differs from source directory there will be
bunch of files we should ignore, so just remove leading "/" for some or rules.
And fix others.

.gitignore

index 996100453441760757cb7971823f21473f385c97..e85f9f38b11921541ce78460d7b34fb9dbf0c307 100644 (file)
@@ -84,9 +84,6 @@ cscope*
 /stamp-h1
 /stamp-h2
 
-/include/event2/event-config.h
-/evconfig-private.h
-
 /sample/dns-example
 /sample/event-read-fifo
 /sample/hello-world
@@ -118,29 +115,36 @@ cscope*
 /test/test-changelist
 /test/test-fdleak
 
+**/include/event2/event-config.h
+**/include/evconfig-private.h
 
 # Files generated by cmake
-/CMakeCache.txt
-/CMakeFiles/
-/CTestTestfile.cmake
-/DartConfiguration.tcl
-/LibeventConfig.cmake
-/LibeventConfigVersion.cmake
-/LibeventTargets.cmake
-/bin/
-/cmake_install.cmake
-/include/evconfig-private.h
-/lib/
-/tmp/
-/verify_tests.sh
-/verify_tests.bat
-/event.dir
-/event_core.dir
-/event_extra.dir
+CMakeCache.txt
+CMakeFiles/
+CTestTestfile.cmake
+DartConfiguration.tcl
+LibeventConfig.cmake
+LibeventConfigVersion.cmake
+LibeventTargets.cmake
+bin/
+cmake_install.cmake
+lib/
+tmp/
+verify_tests.sh
+verify_tests.bat
+event.dir
+event_core.dir
+event_extra.dir
 *.vcxproj
 *.sln
 *.filters
 
+# ninja
+build.ninja
+rules.ninja
+.ninja_deps
+.ninja_log
+
 # make dist
 /COPYING
 /INSTALL