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

../configure && make doesn't work in a subdirectory #7

Open
sjackman opened this issue Apr 19, 2017 · 4 comments
Open

../configure && make doesn't work in a subdirectory #7

sjackman opened this issue Apr 19, 2017 · 4 comments

Comments

@sjackman
Copy link
Contributor

sjackman commented Apr 19, 2017

It's helpful to be able to build in a subdirectory when working with multiple architectures, such as both Linux and macOS.

mkdir build
cd build
../configure
make
make  all-recursive
Making all in SeqLib/htslib
/bin/sh: line 0: cd: SeqLib/htslib: No such file or directory
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
@walaj
Copy link
Owner

walaj commented Apr 19, 2017

Will look into this. Not immediately sure how to get autotools to do this.

@sjackman
Copy link
Contributor Author

sjackman commented Apr 19, 2017

It's usually a matter of using $srcdir, $builddir, $top_srcdir, and $top_builddir as appropriate in the Makefile.am.

@walaj
Copy link
Owner

walaj commented Apr 19, 2017

Yeah, that's where I'm stuck. It works in the other Makefile.am files, but not the main one. I'm seeing this after running automake:

Makefile.am:2: error: required directory ./$(srcdir)/SeqLib/htslib does not exist

with this Makefile.am

AUTOMAKE_OPTIONS = foreign                                                                                                                                                                                
SUBDIRS = $(srcdir)/SeqLib/htslib $(srcdir)/SeqLib/src src

Not sure why that doesn't work...

@sjackman
Copy link
Contributor Author

sjackman commented Apr 19, 2017

walaj/htslib doesn't use automake. There's no Makefile.am nor Makefile.in file, just a bare Makefile. It may be possible to hack it up to get it working, but it may not be worth the effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants