Make installing headers optional
parent
79be039ae9
commit
550a791396
10
configure.ac
10
configure.ac
|
@ -170,23 +170,17 @@ AM_CONDITIONAL(MOO_BUILD_PLUGINS, true)
|
|||
|
||||
if test "x$build_mooutils" != "xno"; then
|
||||
AC_DEFINE(MOO_BUILD_UTILS,, [build mooutils])
|
||||
MOO_COMPONENTS_CFLAGS="$MOO_COMPONENTS_CFLAGS -DMOO_BUILD_UTILS"
|
||||
fi
|
||||
if test "x$build_mooedit" != "xno"; then
|
||||
AC_DEFINE(MOO_BUILD_EDIT,, [build mooedit])
|
||||
MOO_COMPONENTS_CFLAGS="$MOO_COMPONENTS_CFLAGS -DMOO_BUILD_EDIT"
|
||||
fi
|
||||
if test "x$build_mooterm" != "xno"; then
|
||||
AC_DEFINE(MOO_BUILD_TERM,, [build mooterm])
|
||||
MOO_COMPONENTS_CFLAGS="$MOO_COMPONENTS_CFLAGS -DMOO_BUILD_TERM"
|
||||
fi
|
||||
if test "x$build_mooapp" != "xno"; then
|
||||
AC_DEFINE(MOO_BUILD_APP,, [build mooapp])
|
||||
MOO_COMPONENTS_CFLAGS="$MOO_COMPONENTS_CFLAGS -DMOO_BUILD_APP"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
moo_top_src_dir=`cd $srcdir && pwd`
|
||||
moo_top_build_dir=`cd ./$ac_top_builddir && pwd`
|
||||
MOO_CFLAGS="-I$moo_top_src_dir/moo $GTK_CFLAGS -DXDG_PREFIX=_moo_edit_xdg -DG_LOG_DOMAIN=\\\"Moo\\\" -D__MOO__ -DMOO_MARSHALS_H=\\\"mooutils/moomarshals.h\\\""
|
||||
|
@ -197,7 +191,6 @@ if test x$MOO_USE_FAM = xyes; then
|
|||
fi
|
||||
|
||||
AC_SUBST(MOO_CFLAGS)
|
||||
AC_SUBST(MOO_COMPONENTS_CFLAGS)
|
||||
AC_SUBST(MOO_LIBS)
|
||||
|
||||
|
||||
|
@ -248,6 +241,9 @@ AC_SUBST(MOO_PLUGINS_DIR)
|
|||
AC_DEFINE_UNQUOTED(MOO_PLUGINS_DIR, "${mooprefix}/${moolibdir}/plugins", [plugins dir])
|
||||
|
||||
|
||||
AM_CONDITIONAL(MOO_STANDALONE, true)
|
||||
|
||||
|
||||
################################################################################
|
||||
# Created files
|
||||
#
|
||||
|
|
|
@ -11,12 +11,17 @@ DIST_SUBDIRS = \
|
|||
moopython \
|
||||
mooterm
|
||||
|
||||
mooincludedir = $(includedir)/moo-1.0
|
||||
mooinclude_HEADERS = moo.h
|
||||
moolibincludedir = $(libdir)/moo-1.0/include
|
||||
moolibinclude_HEADERS = moo-config.h
|
||||
mooinclude_headers = moo.h
|
||||
moolibinclude_headers = moo-config.h
|
||||
|
||||
EXTRA_DIST = $(mooinclude_HEADERS) $(moolibinclude_HEADERS)
|
||||
if MOO_STANDALONE
|
||||
mooincludedir = $(includedir)/moo-1.0
|
||||
mooinclude_HEADERS = $(mooinclude_headers)
|
||||
moolibincludedir = $(libdir)/moo-1.0/include
|
||||
moolibinclude_HEADERS = $(moolibinclude_headers)
|
||||
endif MOO_STANDALONE
|
||||
|
||||
EXTRA_DIST = $(mooinclude_headers) $(moolibinclude_headers)
|
||||
|
||||
|
||||
# lib_LTLIBRARIES = libmoo-1.0.la
|
||||
|
|
|
@ -47,8 +47,10 @@ EXTRA_DIST = \
|
|||
moopythonconsole.c \
|
||||
moopythonconsole.h
|
||||
|
||||
if MOO_STANDALONE
|
||||
mooappincludedir = $(includedir)/moo-1.0/mooapp
|
||||
mooappinclude_HEADERS = mooapp.h
|
||||
endif MOO_STANDALONE
|
||||
|
||||
|
||||
GLADE = $(srcdir)/glade
|
||||
|
|
|
@ -15,8 +15,7 @@ AM_CFLAGS = \
|
|||
|
||||
noinst_LTLIBRARIES = libmooedit.la
|
||||
|
||||
mooeditincludedir = $(includedir)/moo-1.0/mooedit
|
||||
mooeditinclude_HEADERS = \
|
||||
mooeditinclude_headers = \
|
||||
mooedit.h \
|
||||
mooeditor.h \
|
||||
mooeditprefs.h \
|
||||
|
@ -56,12 +55,12 @@ noinst_HEADERS = \
|
|||
|
||||
if !MOO_OS_MINGW
|
||||
unix_sources = moocmdview.c
|
||||
mooeditinclude_HEADERS += moocmdview.h
|
||||
mooeditinclude_headers += moocmdview.h
|
||||
endif
|
||||
|
||||
libmooedit_la_SOURCES = \
|
||||
$(unix_sources) \
|
||||
$(mooeditinclude_HEADERS) \
|
||||
$(mooeditinclude_headers) \
|
||||
$(noinst_HEADERS) \
|
||||
gtksourceiter.c \
|
||||
mooedit.c \
|
||||
|
@ -99,6 +98,11 @@ BUILT_SOURCES = \
|
|||
mooeditprefs-glade.h \
|
||||
mooeditcolorsprefs-glade.h
|
||||
|
||||
if MOO_STANDALONE
|
||||
mooeditincludedir = $(includedir)/moo-1.0/mooedit
|
||||
mooeditinclude_HEADERS = $(mooeditinclude_headers)
|
||||
endif MOO_STANDALONE
|
||||
|
||||
|
||||
GLADE = $(srcdir)/glade
|
||||
XML2H = $(srcdir)/../mooutils/xml2h.sh
|
||||
|
|
|
@ -4,16 +4,20 @@
|
|||
|
||||
SUBDIRS = glade
|
||||
|
||||
mootermincludedir = $(includedir)/moo-1.0/mooterm
|
||||
mooterminclude_HEADERS = \
|
||||
mooterminclude_headers = \
|
||||
mooterm.h \
|
||||
mootermwindow.h \
|
||||
mooterm-text.h \
|
||||
mootermline.h \
|
||||
mootermtag.h
|
||||
|
||||
if MOO_STANDALONE
|
||||
mootermincludedir = $(includedir)/moo-1.0/mooterm
|
||||
mooterminclude_HEADERS = $(mooterminclude_headers)
|
||||
endif MOO_STANDALONE
|
||||
|
||||
widget_sources = \
|
||||
$(mooterminclude_HEADERS) \
|
||||
$(mooterminclude_headers) \
|
||||
mooterm.c \
|
||||
mooterm-input.c \
|
||||
mooterm-keymap.h \
|
||||
|
|
|
@ -34,8 +34,7 @@ libmooutils_la_LIBADD = \
|
|||
$(moofileview_lib) \
|
||||
$(xdgmime_lib)
|
||||
|
||||
utilsincludedir = $(includedir)/moo-1.0/mooutils
|
||||
utilsinclude_HEADERS = \
|
||||
utilsinclude_headers = \
|
||||
eggregex.h \
|
||||
mooaccelbutton.h \
|
||||
moobigpaned.h \
|
||||
|
@ -71,8 +70,13 @@ win32_sources = \
|
|||
moohandlewatch.h \
|
||||
moohandlewatch.c
|
||||
|
||||
if MOO_STANDALONE
|
||||
utilsincludedir = $(includedir)/moo-1.0/mooutils
|
||||
utilsinclude_HEADERS = $(utilsinclude_headers)
|
||||
endif MOO_STANDALONE
|
||||
|
||||
libmooutils_la_SOURCES = \
|
||||
$(utilsinclude_HEADERS) \
|
||||
$(utilsinclude_headers) \
|
||||
eggregex.c \
|
||||
mooaccelbutton.c \
|
||||
mooaccelbutton-glade.h \
|
||||
|
|
Loading…
Reference in New Issue