Subject: distcheck error?

distcheck error?

From: Simon Josefsson <simon_at_josefsson.org>
Date: Wed, 22 Jul 2009 23:07:49 +0200

Hi all!

I'm paging in various projects after some vacation, and libssh2 is one
of them... I just built latest libssh2 (make check works fine, nice!)
and ran into a problem with make distcheck:

make[1]: Entering directory `/home/jas/src/libssh2/libssh2-1.1.1_CVS/_build'
echo "see NEWS" > ./ChangeLog
make[1]: *** No rule to make target `win32/msvcproj.head', needed by `win32/libssh2.dsp'. Stop.
make[1]: Leaving directory `/home/jas/src/libssh2/libssh2-1.1.1_CVS/_build'
make: *** [distcheck] Error 1
jas_at_mocca:~/src/libssh2 master$

The patch below fixes that, but then there is another failure:

ERROR: files left in build directory after distclean:
./ChangeLog
make[1]: *** [distcleancheck] Error 1

The second patch below fixes that.

With these patches, make distcheck works for me. I'll take a look at
building under mingw next.

/Simon

diff --git a/Makefile.am b/Makefile.am
index 8069cbc..77594a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,7 +21,8 @@ CLEANFILES = $(DSP)
 
 WIN32FILES = win32/Makefile.win32 win32/libssh2.dsw \
 win32/config.mk win32/Makefile win32/test/Makefile.win32 \
-win32/libssh2_config.h win32/tests.dsp win32/rules.mk $(DSP)
+win32/libssh2_config.h win32/tests.dsp win32/rules.mk $(DSP) \
+win32/msvcproj.head win32/msvcproj.foot
 
 EXTRA_DIST = $(WIN32FILES) buildconf $(NETWAREFILES) get_ver.awk HACKING \
  maketgz NMakefile TODO

diff --git a/Makefile.am b/Makefile.am
index 8069cbc..93c52d1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,6 +32,7 @@ ACLOCAL_AMFLAGS = -I m4
 .PHONY: ChangeLog
 ChangeLog:
         echo "see NEWS" > ./ChangeLog
+CLEANFILES += ChangeLog
 
 dist-hook:
         rm -rf $(top_builddir)/tests/log
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-07-22