2010-01-08 15:28:40 +01:00
|
|
|
|
2015-02-07 11:37:13 +01:00
|
|
|
# turn on Python if we can
|
2007-08-29 18:23:50 +02:00
|
|
|
if HAVE_PYTHON
|
2009-08-16 17:00:08 +02:00
|
|
|
P_COMPILE_DIR = swig
|
2007-08-29 18:23:50 +02:00
|
|
|
P_DIST_DIR =
|
|
|
|
else
|
|
|
|
P_COMPILE_DIR =
|
2009-08-16 17:00:08 +02:00
|
|
|
P_DIST_DIR = swig
|
2007-08-29 18:23:50 +02:00
|
|
|
endif
|
|
|
|
|
2014-10-14 15:56:49 +02:00
|
|
|
# turn on vips8 Python if we can
|
2014-12-18 10:15:58 +01:00
|
|
|
if ENABLE_PYVIPS8
|
2014-10-14 15:56:49 +02:00
|
|
|
P8_COMPILE_DIR = python
|
|
|
|
P8_DIST_DIR =
|
|
|
|
else
|
|
|
|
P8_COMPILE_DIR =
|
|
|
|
P8_DIST_DIR = python
|
|
|
|
endif
|
|
|
|
|
2014-12-18 10:15:58 +01:00
|
|
|
# turn docs on or off
|
2014-06-27 15:56:11 +02:00
|
|
|
if ENABLE_DOCS
|
|
|
|
D_DIST_DIR =
|
|
|
|
D_BUILD_DIR = doc
|
|
|
|
else
|
|
|
|
D_DIST_DIR = doc
|
|
|
|
D_BUILD_DIR =
|
|
|
|
endif
|
|
|
|
|
2007-08-29 18:23:50 +02:00
|
|
|
SUBDIRS = \
|
2009-08-16 17:00:08 +02:00
|
|
|
libvips \
|
2015-02-07 11:37:13 +01:00
|
|
|
libvipsCC \
|
|
|
|
cplusplus \
|
2009-08-16 17:00:08 +02:00
|
|
|
tools \
|
2007-08-29 18:23:50 +02:00
|
|
|
po \
|
2011-07-26 10:27:06 +02:00
|
|
|
man \
|
2009-08-16 17:00:08 +02:00
|
|
|
doc \
|
2014-11-19 16:01:28 +01:00
|
|
|
test \
|
2014-06-27 15:56:11 +02:00
|
|
|
$(P_COMPILE_DIR) \
|
2014-10-14 15:56:49 +02:00
|
|
|
$(P8_COMPILE_DIR) \
|
2014-06-27 15:56:11 +02:00
|
|
|
$(D_BUILD_DIR)
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2009-08-16 17:00:08 +02:00
|
|
|
m4 \
|
2007-08-29 18:23:50 +02:00
|
|
|
benchmark \
|
|
|
|
bootstrap.sh \
|
2012-07-20 11:22:43 +02:00
|
|
|
vips.pc.in \
|
|
|
|
vipsCC.pc.in \
|
2014-11-05 15:04:46 +01:00
|
|
|
vips-cpp.pc.in \
|
2014-01-18 13:44:28 +01:00
|
|
|
libvips.supp \
|
2007-08-29 18:23:50 +02:00
|
|
|
acinclude.m4 \
|
|
|
|
depcomp \
|
2014-11-23 15:02:38 +01:00
|
|
|
README.md \
|
2014-06-27 15:56:11 +02:00
|
|
|
$(P_DIST_DIR) \
|
2014-10-14 15:56:49 +02:00
|
|
|
$(P8_DIST_DIR) \
|
2014-06-27 15:56:11 +02:00
|
|
|
$(D_DIST_DIR)
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2015-02-07 11:37:13 +01:00
|
|
|
pkgconfig_DATA = vips.pc vipsCC.pc vips-cpp.pc
|
2007-08-29 18:23:50 +02:00
|
|
|
|
2014-06-27 15:56:11 +02:00
|
|
|
if ENABLE_DOCS
|
2007-08-29 18:23:50 +02:00
|
|
|
install-exec-hook:
|
|
|
|
-rm -rf ${DESTDIR}$(datadir)/doc/vips
|
|
|
|
$(mkinstalldirs) ${DESTDIR}$(datadir)/doc/vips
|
|
|
|
-cp -r ${top_srcdir}/doc/html ${top_srcdir}/doc/pdf ${DESTDIR}$(datadir)/doc/vips
|
2014-06-27 15:56:11 +02:00
|
|
|
endif
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
# make sure we don't get any .svn dirs from EXTRA_DIST
|
2013-03-07 10:58:39 +01:00
|
|
|
# also "fred" gets left around occasionally
|
2007-08-29 18:23:50 +02:00
|
|
|
-find $(distdir) -name .svn -exec rm -rf {} \;
|
2013-03-07 10:58:39 +01:00
|
|
|
-find $(distdir) -name fred -exec rm {} \;
|
2007-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
# make sure we have write permission for 'rm'
|
|
|
|
-chmod -R u+w ${DESTDIR}$(datadir)/doc/vips
|
|
|
|
-rm -rf ${DESTDIR}$(datadir)/doc/vips
|
|
|
|
|
2011-06-20 19:00:01 +02:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-introspection
|