Menu

Cleaning up ncap_lex.c and ncap_yacc.[ch]

Developers
2004-01-12
2013-10-17
  • Charlie Zender

    Charlie Zender - 2004-01-12

    Hi Rorik,

    I've noticed that when ncap_lex.l is newer than ncap_lex.c
    that 'make' does not rebuild ncap_lex.c before recompiling.
    At least I think this is what is happening.
    Maybe my  timestamps are screwy because I'm traveling.
    Anyway, if you notice the same behavior, then would you please try to modify the autotools
    instructions so that ncap_lex.c and ncap_yacc.[ch], if they exist, are removed by 'make clean' and 'make distclean'?

    Thanks,
    Charlie

     
    • Rorik Peterson

      Rorik Peterson - 2004-01-12

      Charlie,
        Those files are not cleaned usually because they require "special tools" to build, for example lex and yacc. 
      That way people that download the source tarball (nco-2.8.5.tar.gz for example), only need a c compiler to build it.  If they were deleted by make clean, the lex/yacc-less builder would be screwed the first time they did 'make clean'. 

      If you want them cleaned upon 'make clean', use maintainer mode (--enable-maintainer-mode) with ./configure.

      rorik

       
      • Charlie Zender

        Charlie Zender - 2004-01-12

        Ahhh. Yes, this has the ring of something you've told me
        before. Thanks for reminding me. I'll try to remember to
        use --enable-maintainer-mode when I'm hacking on those
        files.

        Thanks,
        Charlie

         

Log in to post a comment.