libvips/Makefile.am

59 lines
1.2 KiB
Makefile
Raw Normal View History

2010-01-08 15:28:40 +01:00
# turn off libvipsCC if C++ is disabled
if ENABLE_CXX
C_COMPILE_DIR = libvipsCC
C_DIST_DIR =
C_PKGCONFIG = vipsCC-7.${IM_MINOR_VERSION}.pc
# turn on Python if we can (requires C++)
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 =
2010-01-08 15:28:40 +01:00
endif
2007-08-29 18:23:50 +02:00
else
2010-01-08 15:28:40 +01:00
C_COMPILE_DIR =
C_DIST_DIR = libvipsCC
C_PKGCONFIG =
2007-08-29 18:23:50 +02:00
P_COMPILE_DIR =
2009-08-16 17:00:08 +02:00
P_DIST_DIR = swig
2007-08-29 18:23:50 +02:00
endif
SUBDIRS = \
2009-08-16 17:00:08 +02:00
libvips \
tools \
2007-08-29 18:23:50 +02:00
po \
2009-08-16 17:00:08 +02:00
doc \
2010-01-08 15:28:40 +01:00
$(C_COMPILE_DIR) \
2007-08-29 18:23:50 +02:00
$(P_COMPILE_DIR)
EXTRA_DIST = \
2009-08-16 17:00:08 +02:00
m4 \
2007-08-29 18:23:50 +02:00
benchmark \
bootstrap.sh \
2007-08-29 19:27:28 +02:00
vips-7.${IM_MINOR_VERSION}.pc.in \
2010-01-08 15:28:40 +01:00
vipsCC-7.${IM_MINOR_VERSION}.pc.in \
2007-08-29 18:23:50 +02:00
acinclude.m4 \
depcomp \
2010-01-08 15:28:40 +01:00
$(C_DIST_DIR) \
2007-08-29 18:23:50 +02:00
$(P_DIST_DIR)
pkgconfigdir = $(libdir)/pkgconfig
2010-01-08 15:28:40 +01:00
pkgconfig_DATA = vips-7.${IM_MINOR_VERSION}.pc $(C_PKGCONFIG)
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
dist-hook:
# make sure we don't get any .svn dirs from EXTRA_DIST
-find $(distdir) -name .svn -exec rm -rf {} \;
uninstall-hook:
# make sure we have write permission for 'rm'
-chmod -R u+w ${DESTDIR}$(datadir)/doc/vips
-rm -rf ${DESTDIR}$(datadir)/doc/vips
2009-08-16 17:00:08 +02:00
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc