[projects/rc-scripts] ensure changelog is fresh for make dist

glen glen at pld-linux.org
Fri Sep 23 23:33:41 CEST 2016


commit aeaa34bf39581eb517ff66fc859bfea43e23f6f8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Sep 24 00:22:45 2016 +0300

    ensure changelog is fresh for make dist

 Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/Makefile.am b/Makefile.am
index cb42ea9..1e7761f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -42,6 +42,11 @@ DISTCLEANFILES = \
 ChangeLog:
 	$(top_srcdir)/changelog.sh $(top_builddir)
 
+dist-hook:
+	rm -f $(top_builddir)/ChangeLog
+	$(MAKE) -C $(top_builddir) ChangeLog
+	cp -pf $(top_builddir)/ChangeLog $(top_distdir)/ChangeLog
+
 install-data-hook:
 	install -d $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)
 	[ -f $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache ] || touch $(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/msg.cache
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/03fb1187015294e42abcf69e38ecfef5d9604cd8



More information about the pld-cvs-commit mailing list