File: generated-includes

package info (click to toggle)
librcsb-core-wrapper 1.005-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,504 kB
  • sloc: xml: 122,915; cpp: 25,250; ansic: 3,736; makefile: 1,031; sh: 772; lex: 294; yacc: 235; perl: 213; python: 121; csh: 30
file content (19 lines) | stat: -rw-r--r-- 945 bytes parent folder | download | duplicates (3)
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