Skip to content

Commit

Permalink
fix out-of-tree build and distcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Apr 18, 2018
1 parent bebeb85 commit 47d6db7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SUBDIRS = utils
SUBDIRS = src utils
if WITH_GUILE
SUBDIRS += src examples
SUBDIRS += examples
endif
EXTRA_DIST = COPYRIGHT doc base README.md NEWS.md
ACLOCAL_AMFLAGS = -I m4
Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ LIBCTL_DIR = @LIBCTL_DIR@
GEN_CTL_IO = @GEN_CTL_IO@

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

##############################################################################
Expand Down
3 changes: 3 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@

EXTRA_DIST = ctl.h.in

if WITH_GUILE
lib_LTLIBRARIES = libctl.la
endif

include_HEADERS = ctl-math.h
nodist_include_HEADERS = ctl.h

Expand Down
5 changes: 3 additions & 2 deletions utils/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ EXTRA_DIST = gen-ctl-io.in README geom.scm geom-ctl-io-defaults.c nlopt.c

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

geomtst_SOURCES = geomtst.c
geomtst_LDADD = libctlgeom.la
geomtst_CPPFLAGS = -I$(top_srcdir)/src

dist_man_MANS = gen-ctl-io.1

Expand Down Expand Up @@ -40,4 +41,4 @@ geom-ctl-io.c: ctl-io.c
endif

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

0 comments on commit 47d6db7

Please sign in to comment.