bugfix on libvdehist: memory leak. vdehist_create_commandlist rewritten.
[vde.git] / vde-2 / Makefile.am
blob01c8c668f8c52e059eee316b03f6babeca3381b7
1 SUBDIRS = include src man doc
2 ACLOCAL_AMFLAGS = -I m4
4 EXTRA_DIST = Changelog COPYING COPYING.libvdeplug COPYING.slirpvde INSTALL README
6 DISTCHECK_CONFIGURE_FLAGS = --enable-experimental
8 extraclean: distclean
9         rm -f \
10         aclocal.m4 \
11         autom4te.cache \
12         autoscan.log \
13         configure.scan \
14         configure \
15         depcomp \
16         install-sh \
17         Makefile.in \
18         config.guess \
19         config.sub \
20         ltmain.sh \
21         missing \
22         compile \
23         include/config.h.in* \
24         vde2-*.tar.gz \
25         vde2-*.tar.bz2 \
26         `find . -name Makefile.in` \
27         $(cksum_file)
29 # release stuff
30 # https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
32 cksum_file=$(distdir).checksum
33 trunk_url=https://vde.svn.sourceforge.net/svnroot/vde/trunk/vde-2
34 tag_url=https://vde.svn.sourceforge.net/svnroot/vde/tags/vde-2/$(PACKAGE_VERSION)
36 release_checksums: dist
37         rm -f $(cksum_file)
38         which sha1sum >/dev/null && sha1sum $(DIST_ARCHIVES) >> $(cksum_file)
39         which sha256sum >/dev/null && sha256sum $(DIST_ARCHIVES) >> $(cksum_file)
40 # error if the file is empty (or non existant)
41         /usr/bin/test -s $(cksum_file) || exit 1
43 release_steps:
44         @/usr/bin/test -f release_ready || { \
45           echo "File release_ready not found, complete these steps first:"; \
46           echo "- check any outstanding bug on sf.net"; \
47           echo "- check any outstanding bug on bugs.debian.org"; \
48           echo "- update the changelog"; \
49           echo "- increase version number in configure.ac"; \
50           echo "Once you're done you can 'touch release_ready' to proceed"; exit 1; }
52 release_tag:
53 # check if release tag exists, othewise tag the release
54         svn ls $(tag_url) 1>/dev/null || svn copy -m "Tag release $(PACKAGE_VERSION)" $(trunk_url) $(tag_url)
56 release: release_steps release_tag release_checksums
57         reldir=`mktemp -d -t vde.XXXXXX`/$(PACKAGE_VERSION); \
58         mkdir -p $$reldir; \
59         cp -v $(DIST_ARCHIVES) $(cksum_file) $$reldir; \
60         rm -f release_ready
61         echo "***"
62         echo "*** release ready at $$reldir, manual steps left:"; \
63         echo "***"
64         echo "gpg -o $$reldir/$(cksum_file).asc --clearsign $$reldir/$(cksum_file)"; \
65         echo "rsync -e ssh -vaz $$reldir <SF_USERNAME>,vde@frs.sourceforge.net:/home/frs/project/v/vd/vde/vde2/"