summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorbfriesen <bfriesen>2015-09-01 15:38:01 +0000
committerbfriesen <bfriesen>2015-09-01 15:38:01 +0000
commitabcdc9a92b8f5bfda4c8de03d63289451fd781db (patch)
treed5657e829ca361b3c38f4bad37b54774c12efd03 /Makefile.in
parent678df49cb6d54f8ec0d36559698f48d6a15332e9 (diff)
downloadlibtiff-abcdc9a92b8f5bfda4c8de03d63289451fd781db.tar.gz
* CMakeLists.txt, Makefile.am, configure.ac: Applied patches by
Roger Leigh (via tiff mailing list on 2015-09-01). CMake build is now included in 'distcheck' target. Builds with CMake 2.8.9 and newer. Tar is now resquested to use POSIX PAX format.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 6ab730bb..12f0e620 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -762,6 +762,7 @@ distcheck: dist
test -d $(distdir)/_build || exit 0; \
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
&& am__cwd=`pwd` \
&& $(am__cd) $(distdir)/_build/sub \
&& ../../configure \
@@ -951,6 +952,16 @@ uninstall-am: uninstall-dist_docDATA uninstall-pkgconfigDATA
.PRECIOUS: Makefile
+distcheck-hook:
+ mkdir $(distdir)/_build/cmake \
+ && cd $(distdir)/_build/cmake \
+ && cmake ../.. \
+ && $(MAKE) \
+ && ctest -V \
+ && $(MAKE) DESTDIR=../../_inst/cmake install
+ $(RM) -r $(distdir)/_build/cmake
+ $(RM) -r $(distdir)/_inst/cmake
+
release:
(rm -f $(top_srcdir)/RELEASE-DATE && echo $(LIBTIFF_RELEASE_DATE) > $(top_srcdir)/RELEASE-DATE)
(rm -f $(top_srcdir)/VERSION && echo $(LIBTIFF_VERSION) > $(top_srcdir)/VERSION)