]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Generate a ChangeLog, if possible, and copy it to the dist directory in order
authordlezcano <dlezcano>
Tue, 28 Oct 2008 22:08:05 +0000 (22:08 +0000)
committerdlezcano <dlezcano>
Tue, 28 Oct 2008 22:08:05 +0000 (22:08 +0000)
to be shipped with the release

Makefile.am

index 2ab16cb11847120200c244ec3237d8d48f651334..921a1322ae38cae59eacdfe967577ad4cb9587ef 100644 (file)
@@ -5,14 +5,16 @@ DIST_SUBDIRS = config src test etc
 EXTRA_DIST = lxc.spec
 
 ChangeLog::
-       touch ChangeLog
+       @touch ChangeLog
+
+dist-hook:
+       -@cvs2cl
+       @cp ChangeLog $(distdir)
 
 rpm: dist
        rpmbuild --clean -ta ${distdir}.tar.gz
 
 release: rpm
-       @echo "Generating ChangeLog"
-       @cvs2cl
        @sh ./release.sh $(PACKAGE_NAME) \
                        $(LXC_MAJOR_VERSION) \
                        $(LXC_MINOR_VERSION) \