diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2013-01-08 16:44:41 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2013-01-08 16:44:41 +0000 |
commit | 812e693b8c025c73ff5cddae3581b547465ab915 (patch) | |
tree | dea9a282366dbcd2c0c3a37fbec571d7301c415f | |
parent | 31b856e8fd028f977841a6c736cc19d6eaeee312 (diff) | |
download | LibXtract-812e693b8c025c73ff5cddae3581b547465ab915.tar.gz LibXtract-812e693b8c025c73ff5cddae3581b547465ab915.tar.bz2 LibXtract-812e693b8c025c73ff5cddae3581b547465ab915.zip |
fixed build system bugs to do with the maintainer-clean target
-rw-r--r-- | Makefile.am | 8 | ||||
-rw-r--r-- | configure.ac | 60 | ||||
-rw-r--r-- | doc/Makefile.am | 5 |
3 files changed, 51 insertions, 22 deletions
diff --git a/Makefile.am b/Makefile.am index 48a3919..e844bd3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,10 +1,14 @@ -MAINTAINERCLEANFILES = Makefile.in configure depcomp compile config.guess ltmain.sh config.sub missing install-sh aclocal.m4 config.h.in config.h.in~ py-compile +MAINTAINERCLEANFILES = INSTALL Makefile.in configure depcomp compile config.guess ltmain.sh config.sub missing install-sh aclocal.m4 config.h.in config.h.in~ py-compile m4/ltsugar.m4 m4/libtool.m4 m4/ltversion.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 if BUILD_SWIG SWIG_DIR = swig endif -SUBDIRS = src xtract examples $(SWIG_DIR) @DOXYGEN@ +if HAVE_DOXYGEN +DOXY_DIR = @DOXYGEN@ +endif + +SUBDIRS = src xtract examples $(SWIG_DIR) doc pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libxtract.pc diff --git a/configure.ac b/configure.ac index be8e0b5..bc44df9 100644 --- a/configure.ac +++ b/configure.ac @@ -26,8 +26,22 @@ AC_ENABLE_STATIC(no) AC_ENABLE_SHARED(yes) AC_PROG_LIBTOOL AC_CHECK_HEADERS([math.h, stdlib.h, stdio.h]) -AC_CHECK_PROG([DOXYGEN], [doxygen], [doc], []) -AC_SUBST(DOXYGEN) + +dnl DOXYGEN support + +AC_CHECK_PROGS([DOXYGEN], [doxygen]) + +if test -z "$DOXYGEN"; +then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) +else + AC_MSG_NOTICE([Doxygen found - continuing with Doxygen support]) +fi + +AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) +AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([doc/documentation.doxygen])]) + +AC_SUBST(HAVE_DOXYGEN) +dnl --enable flags AC_ARG_ENABLE(pd_example, [ --enable-pd_example Compile the Pure Data external example], @@ -254,11 +268,10 @@ AC_SUBST(PD_LDFLAGS) AC_SUBST(PD_SUFFIX) AC_SUBST(PD_SOURCES) -AC_CONFIG_FILES([doc/documentation.doxygen - libxtract.pc]) +AC_CONFIG_FILES([libxtract.pc]) dnl There must be a better way to do this... -AC_OUTPUT(Makefile src/Makefile xtract/Makefile doc/Makefile examples/Makefile examples/puredata/Makefile examples/simpletest/Makefile swig/Makefile swig/python/Makefile swig/java/Makefile) +AC_OUTPUT(Makefile src/Makefile doc/Makefile xtract/Makefile examples/Makefile examples/puredata/Makefile examples/simpletest/Makefile swig/Makefile swig/python/Makefile swig/java/Makefile) echo echo "**************************************************************" @@ -267,30 +280,43 @@ echo "Summary:" echo dnl echo you are using the ${host} architecture + +if test -z "$DOXYGEN"; then + echo "doxygen documentation: no (doxygen not found)" +else + echo "doxygen documentation: yes" +fi if test "$simpletest" = "true"; then - echo "simpletest example: yes" + echo "simpletest example: yes" else - echo "simpletest example: no" + echo "simpletest example: no" fi if test "$pd_example" = "true"; then - echo "PD external: yes" - echo - echo "The PD help files will be installed in:" - echo ${prefix}"/lib/doc/5.reference/xtract/" - echo "You must make sure that this is in your PD help path" + echo "PD external: yes" + echo + echo "The PD help files will be installed in:" + echo ${prefix}"/lib/doc/5.reference/xtract/" + echo "You must make sure that this is in your PD help path" else - echo "PD external: no" + echo "PD external: no" fi if test "$swig" == "true"; then - echo "SWIG bindings: yes" + echo "SWIG bindings: yes" else - echo "SWIG bindings: no" + echo "SWIG bindings: no" fi if test "$with_java" == "true"; then - echo "with JAVA module: yes" + echo "with JAVA module: yes" else - echo "with JAVA module: no" + echo "with JAVA module: no" fi +if test "$with_python" == "true"; then + echo "with Python module: yes" +else + echo "with Python module: no" +fi + + echo echo "**************************************************************" echo diff --git a/doc/Makefile.am b/doc/Makefile.am index e95cb38..560a006 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,7 +1,5 @@ -## Process this file with automake to produce Makefile.in -#Stolen from Steve Harris' liblo, thanks Steve! MAINTAINERCLEANFILES=Makefile.in config.log - +if HAVE_DOXYGEN CLEANFILES=doxygen-build.stamp DOX=documentation.doxygen @@ -29,3 +27,4 @@ distclean-local: clean rm -f *.stamp || true if test -d html; then rm -rf html; fi +endif |