|
1 |
| -SET(ncgen_FILES generate.c main.c cdata.c bindata.c genchar.c cvt.c data.c debug.c escapes.c genc.c genbin.c generr.c genlib.c getfill.c odom.c offsets.c semantics.c ncgeny.c dump.c util.c bytebuffer.c list.c genf77.c f77data.c genj.c jdata.c nc_iter.c ConvertUTF.c ncgen.h ) |
| 1 | +SET(ncgen_FILES generate.c main.c cdata.c bindata.c genchar.c cvt.c data.c debug.c escapes.c genc.c genbin.c generr.c genlib.c getfill.c odom.c offsets.c semantics.c ncgeny.c dump.c util.c bytebuffer.c list.c genf77.c f77data.c genj.c jdata.c nc_iter.c ConvertUTF.c ncgen.h ncgenl.h ncgeny.h) |
2 | 2 |
|
3 | 3 | IF(USE_X_GETOPT)
|
4 | 4 | SET(ncgen_FILES ${ncgen_FILES} XGetopt.c)
|
@@ -46,29 +46,29 @@ ENDIF()
|
46 | 46 | SET(CLEANFILES c0.nc c0_64.nc c0_4.nc c0_4c.nc ref_camrun.c)
|
47 | 47 | SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${CLEANFILES}")
|
48 | 48 |
|
49 |
| -# These rules are used if someone wants to rebuild ncgeny.c or ncgenl.c |
| 49 | +# These rules are used if someone wants to rebuild ncgeny.c or ncgenl.h |
50 | 50 | # Otherwise never invoked, but records how to do it.
|
51 | 51 | # BTW: note that renaming is essential because otherwise
|
52 | 52 | # autoconf will forcibly delete files of the name *.tab.*
|
53 | 53 |
|
54 | 54 | ADD_CUSTOM_COMMAND(
|
55 | 55 | OUTPUT ncgentab.h
|
56 | 56 | COMMAND flex -Pncg -8 ncgen.l
|
57 |
| - COMMAND rm -f ncgenl.c |
58 |
| - COMMAND mv lex.ncg.c ncgenl.c |
| 57 | + COMMAND rm -f ncgenl.h |
| 58 | + COMMAND mv lex.ncg.c ncgenl.h |
59 | 59 |
|
60 | 60 | COMMAND bison -pncg -t -d ncgen.y
|
61 | 61 | COMMAND rm -f ncgeny.c ncgeny.h
|
62 | 62 | COMMAND mv ncgen.tab.c ncgeny.c
|
63 | 63 | COMMAND mv ncgen.tab.h ncgeny.h
|
64 | 64 | COMMAND mv ncgeny.h ${CMAKE_CURRENT_SOURCE_DIR}
|
65 | 65 | COMMAND mv ncgeny.c ${CMAKE_CURRENT_SOURCE_DIR}
|
66 |
| - COMMAND mv ncgenl.c ${CMAKE_CURRENT_SOURCE_DIR} |
| 66 | + COMMAND mv ncgenl.h ${CMAKE_CURRENT_SOURCE_DIR} |
67 | 67 |
|
68 | 68 | )
|
69 | 69 | ADD_CUSTOM_TARGET(makeparser DEPENDS ncgentab.h)
|
70 | 70 |
|
71 | 71 | ## Specify files to be distributed by 'make dist'
|
72 | 72 | FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
|
73 |
| -SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} ncgen.y ncgenl.c ncgen.l internals.html c0.cdl c0_4.cdl ref_camrun.cdl ncf199.cdl CMakeLists.txt Makefile.am ncgen.1) |
| 73 | +SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} ncgen.y ncgen.l internals.html c0.cdl c0_4.cdl ref_camrun.cdl ncf199.cdl CMakeLists.txt Makefile.am ncgen.1) |
74 | 74 | ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
0 commit comments