We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75f094 commit 2e8fea6Copy full SHA for 2e8fea6
ext/rdoc/extconf.rb
@@ -2,7 +2,11 @@
2
3
# Generate all parse files using racc and kpeg. This is not necessary for regular gem installation, but it is when
4
# installing RDoc from the git source. Without this, the generated parse files would not exist and RDoc would not work
5
-system("rake generate") if File.exist?("../../.git")
+Dir.chdir(File.expand_path("../..", __dir__)) do
6
+ if !File.exist?("lib/rdoc/markdown.rb") && Dir.exist?(".git")
7
+ system("rake generate", exception: true)
8
+ end
9
+end
10
11
# RDoc doesn't actually have a native extension, but a Makefile needs to exist in order to successfully install the gem
12
require "mkmf"
0 commit comments