Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with "--enable-docs" fails #194

Closed
Ziris85 opened this issue Aug 22, 2017 · 3 comments
Closed

Build with "--enable-docs" fails #194

Ziris85 opened this issue Aug 22, 2017 · 3 comments

Comments

@Ziris85
Copy link

@Ziris85 Ziris85 commented Aug 22, 2017

Good evening! I just tried compiling the latest point release version (1.0.1), and the one prior (1.0.0) and get the same trouble. Whenever I compile with the --enable-docs flag, the subsequent make command fails with:

rst2man ./doc/help.rst > src/conf/help.cc.1
./genhelp.sh src/conf/help.cc.1 src/conf/help.cc
make[1]: ./genhelp.sh: Command not found
make[1]: *** [src/conf/help.cc] Error 127

Indeed, there is no genhelp.sh file in the tarball:

]$ tar --exclude="*/*/*" -tzf re2c-1.0.1.tar.gz 
re2c-1.0.1/
re2c-1.0.1/aclocal.m4
re2c-1.0.1/examples/
re2c-1.0.1/NO_WARRANTY
re2c-1.0.1/Makefile.am
re2c-1.0.1/depcomp
re2c-1.0.1/bootstrap/
re2c-1.0.1/configure
re2c-1.0.1/install-sh
re2c-1.0.1/Makefile.in
re2c-1.0.1/config.h.in
re2c-1.0.1/missing
re2c-1.0.1/doc/
re2c-1.0.1/test-driver
re2c-1.0.1/compile
re2c-1.0.1/README
re2c-1.0.1/autogen.sh
re2c-1.0.1/CHANGELOG
re2c-1.0.1/run_tests.sh.in
re2c-1.0.1/src/
re2c-1.0.1/configure.ac
re2c-1.0.1/test/

Perhaps this is meant to be created on compile? Building without the flag seems to go through, with a message about rebuilding for the docs:

Reconfigure to rebuild docs: ./configure --enable-docs

Of course, is always nice to be able to generate documentation for use :)

@skvadrik
Copy link
Owner

@skvadrik skvadrik commented Aug 22, 2017

Yep, I forgot to package this script, thanks for reporting!

Of course, is always nice to be able to generate documentation for use :)

Documentation is always generated (from precompiled files) without --enable-docs (simple make is enough). This configure option is mostly used by re2c developers who change documentation source files and need to regenerate them.

Loading

skvadrik added a commit that referenced this issue Aug 22, 2017
This fixes bug #194 "Build with "--enable-docs" fails".
@skvadrik
Copy link
Owner

@skvadrik skvadrik commented Aug 22, 2017

The fix: 9a0b960.

I will release 1.0.2 by the end of the week (after addressing some other documentation issues). Meanwhile, if you just want to have docs (and not change and rebuld them), configure without --enable-docs.

Loading

@Ziris85
Copy link
Author

@Ziris85 Ziris85 commented Aug 22, 2017

You're welcome, and snap, I guess I misunderstood the purpose of that flag. Thanks for clarifying!

Loading

@skvadrik skvadrik closed this Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants