moved from .cpp.h to .hpp for bison generated header, still compatible with R5 bison
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8208 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1492,13 +1492,13 @@ rule Bison
|
|||||||
{
|
{
|
||||||
local _h ;
|
local _h ;
|
||||||
|
|
||||||
_h = $(1).h ;
|
_h = $(1:S=.hpp) ;
|
||||||
|
|
||||||
MakeLocate $(<) $(_h) : $(LOCATE_SOURCE) ;
|
MakeLocate $(<) $(_h) : $(LOCATE_SOURCE) ;
|
||||||
|
|
||||||
Depends $(<) $(_h) : $(>) ;
|
Depends $(<) $(_h) : $(>) ;
|
||||||
Bison1 $(<) $(_h) : $(>) ;
|
Bison1 $(<) $(_h) : $(>) ;
|
||||||
LocalClean clean : $(<) $(_h) ;
|
LocalClean clean : $(<) $(_h) ;
|
||||||
|
|
||||||
# make sure someone includes $(_h) else it will be
|
# make sure someone includes $(_h) else it will be
|
||||||
# a deadly independent target
|
# a deadly independent target
|
||||||
@@ -1509,6 +1509,7 @@ rule Bison
|
|||||||
actions Bison1
|
actions Bison1
|
||||||
{
|
{
|
||||||
bison $(YACCFLAGS) -o $(1[1]) $(2)
|
bison $(YACCFLAGS) -o $(1[1]) $(2)
|
||||||
|
[ -f $(1[1]).h ] && mv $(1[1]).h $(1[2]) || true
|
||||||
}
|
}
|
||||||
|
|
||||||
# BeOS specific rules
|
# BeOS specific rules
|
||||||
|
|||||||
Reference in New Issue
Block a user