Skip to content

Commit

Permalink
doxygen: fix compile for Xcode-only systems
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed May 2, 2013
1 parent 79d7a1a commit 928fcfb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Library/Formula/doxygen.rb
Expand Up @@ -33,6 +33,22 @@ def install
s.gsub! /c\+\+$/, ENV.cxx
end

# This is a terrible hack; configure finds lex/yacc OK but
# one Makefile doesn't get generated with these, so pull
# them out of a known good file and cram them into the other.
lex = ''
yacc = ''

inreplace 'src/libdoxycfg.t' do |s|
lex = s.get_make_var 'LEX'
yacc = s.get_make_var 'YACC'
end

inreplace 'src/Makefile.libdoxycfg' do |s|
s.change_make_var! 'LEX', lex
s.change_make_var! 'YACC', yacc
end

system "make"
# MAN1DIR, relative to the given prefix
system "make", "MAN1DIR=share/man/man1", "install"
Expand Down

0 comments on commit 928fcfb

Please sign in to comment.