Skip to content

Commit 47d6db7

Browse files
committed
fix out-of-tree build and distcheck
1 parent bebeb85 commit 47d6db7

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
SUBDIRS = utils
1+
SUBDIRS = src utils
22
if WITH_GUILE
3-
SUBDIRS += src examples
3+
SUBDIRS += examples
44
endif
55
EXTRA_DIST = COPYRIGHT doc base README.md NEWS.md
66
ACLOCAL_AMFLAGS = -I m4

examples/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ LIBCTL_DIR = @LIBCTL_DIR@
4444
GEN_CTL_IO = @GEN_CTL_IO@
4545

4646
# location of libctl headers and library for this project
47-
LIBCTL_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_builddir)/src
47+
LIBCTL_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/src -I$(top_builddir)/src
4848
LIBCTL = $(top_builddir)/src/libctl.la $(LIBGUILE) # change to -lctl -lguile for your project
4949

5050
##############################################################################

src/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11

22
EXTRA_DIST = ctl.h.in
33

4+
if WITH_GUILE
45
lib_LTLIBRARIES = libctl.la
6+
endif
7+
58
include_HEADERS = ctl-math.h
69
nodist_include_HEADERS = ctl.h
710

utils/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ EXTRA_DIST = gen-ctl-io.in README geom.scm geom-ctl-io-defaults.c nlopt.c
88

99
libctlgeom_la_SOURCES = geom.c $(top_srcdir)/src/ctl-math.c $(top_srcdir)/src/integrator.c geom-ctl-io.c ctlgeom-types.h
1010
libctlgeom_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
11-
libctlgeom_la_CPPFLAGS = -DLIBCTLGEOM
11+
libctlgeom_la_CPPFLAGS = -DLIBCTLGEOM -I$(top_srcdir)/src
1212

1313
geomtst_SOURCES = geomtst.c
1414
geomtst_LDADD = libctlgeom.la
15+
geomtst_CPPFLAGS = -I$(top_srcdir)/src
1516

1617
dist_man_MANS = gen-ctl-io.1
1718

@@ -40,4 +41,4 @@ geom-ctl-io.c: ctl-io.c
4041
endif
4142

4243
clean-local:
43-
rm -f ctl-io.[ch] nlopt-constants.scm
44+
rm -f ctl-io.[ch] nlopt-constants.scm ctlgeom-types.h geom-ctl-io.c

0 commit comments

Comments
 (0)