diff --git a/legacy/ecore/Makefile.am b/legacy/ecore/Makefile.am index 377f1080c4..b5b24597b0 100644 --- a/legacy/ecore/Makefile.am +++ b/legacy/ecore/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -SUBDIRS = src debian +SUBDIRS = src debian doc MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \ config.h.in config.sub configure install-sh \ @@ -23,3 +23,13 @@ EXTRA_DIST = README AUTHORS COPYING ecore.m4 ecore.spec m4datadir = $(datadir)/aclocal m4data_DATA = ecore.m4 + + +docs: + $(MAKE) -C $(top_srcdir)/doc docs + +if HAVE_JADE +html-docs: + $(MAKE) -C $(top_srcdir)/doc html-docs +endif + diff --git a/legacy/ecore/configure.ac b/legacy/ecore/configure.ac index 0bb20a306b..3418eef208 100644 --- a/legacy/ecore/configure.ac +++ b/legacy/ecore/configure.ac @@ -1,6 +1,7 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(configure.in) +AC_INIT +AC_CONFIG_SRCDIR([configure.in]) AM_INIT_AUTOMAKE(ecore, 0.0.2) AM_CONFIG_HEADER(config.h) @@ -78,12 +79,32 @@ AC_SUBST(x_includes) AC_SUBST(x_ldflags) AC_SUBST(x_libs) -AC_OUTPUT([ +dnl Checking for Perl: +AC_PATH_PROG(PERL,perl,0) +AC_SUBST(PERL) + + +dnl Look for jade for sgml translations. +AC_ARG_WITH(dbsheets, + [ --with-dbsheets=DIR use DIR to specify your DocBook stylesheets installation path.], + DB_STYLESHEETS="$withval", DB_STYLESHEETS="/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh") +AC_SUBST(DB_STYLESHEETS) +AC_PATH_PROG(JADE, jade) +AM_CONDITIONAL(HAVE_JADE, test "x$JADE" != "x" && test -d "$DB_STYLESHEETS") + + +AC_CONFIG_FILES([ Makefile ecore-config src/Makefile debian/Makefile -], [ +doc/Makefile +doc/kernel-doc +doc/html-customizations.dsl +]) +AC_CONFIG_COMMANDS([default],[[ chmod +x ecore-config -] -) +chmod +x doc/kernel-doc + +]],[[]]) +AC_OUTPUT diff --git a/legacy/ecore/configure.in b/legacy/ecore/configure.in index 0bb20a306b..bd1a927aee 100644 --- a/legacy/ecore/configure.in +++ b/legacy/ecore/configure.in @@ -78,12 +78,30 @@ AC_SUBST(x_includes) AC_SUBST(x_ldflags) AC_SUBST(x_libs) +dnl Checking for Perl: +AC_PATH_PROG(PERL,perl,0) +AC_SUBST(PERL) + + +dnl Look for jade for sgml translations. +AC_ARG_WITH(dbsheets, + [ --with-dbsheets=DIR use DIR to specify your DocBook stylesheets installation path.], + DB_STYLESHEETS="$withval", DB_STYLESHEETS="/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh") +AC_SUBST(DB_STYLESHEETS) +AC_PATH_PROG(JADE, jade) +AM_CONDITIONAL(HAVE_JADE, test "x$JADE" != "x" && test -d "$DB_STYLESHEETS") + + AC_OUTPUT([ Makefile ecore-config src/Makefile debian/Makefile +doc/Makefile +doc/kernel-doc +doc/html-customizations.dsl ], [ chmod +x ecore-config +chmod +x doc/kernel-doc ] )