1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Author: Steve Langasek <steve.langasek@ubuntu.com>
Description: fix up include path for generated header file that's moved
The makefile renames the .tab.c and .tab.h files to .c and .h, but does
not fix up references from the .tab.h header from within the .c file.
I'm surprised this ever worked, but it doesn't work now.
Last-Update: 2020-10-27
Index: librcsb-core-wrapper-1.005/cif-parser/Makefile
===================================================================
--- librcsb-core-wrapper-1.005.orig/cif-parser/Makefile
+++ librcsb-core-wrapper-1.005/cif-parser/Makefile
@@ -181,6 +181,7 @@
sh -c 'cd $(SRC_DIR); $(YACC) $(${^F:.y=_YACC_FLAGS}) ../$<'
mv $(^:.y=.tab.c) $(^:.y=.c)
mv $(^:.y=.tab.h) $(^:.y=.h)
+ sed -i -e's/\.tab\.h/\.h/' $(^:.y=.c)
libtool --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS_NONANSI) -c $(^:.y=.c) -o obj/$(*)Parser.o
obj/%Scanner.o: $(SRC_DIR)/%Scanner.l $(OBJ_DIR)/%Parser.o $(SRC_DIR)/%Parser.h
|