[gxml] * add to Makefile.am logic for maintainer clean and for automated ChangeLog
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] * add to Makefile.am logic for maintainer clean and for automated ChangeLog
- Date: Wed, 22 Aug 2012 07:37:51 +0000 (UTC)
commit ba99ae481594a8a3cd6ae499e122b4b5b3691819
Author: Richard Schwarting <aquarichy gmail com>
Date: Wed Aug 22 03:30:30 2012 -0400
* add to Makefile.am logic for maintainer clean and for automated ChangeLog
Makefile.am | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 66 insertions(+), 4 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 2a35cb3..809e866 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,20 +1,27 @@
## Process this file with automake to produce Makefile.in
## Created by Anjuta
-# What does this do? :D
-ACLOCAL_AMFLAGS = -I m4
+# # RHS: this is causing make to run configure? something to do with ./missing?
+# ACLOCAL_AMFLAGS = -I m4
+
+# Set up subdirectories to traverse
SUBDIRS = gxml test po
if HAVE_VALADOC
SUBDIRS += docs
endif
+# Define available flags
DISTCHECK_CONFIGURE_FLAGS = \
--enable-docs \
$(NULL)
+
+### Specify files to include in dist
+
+# in share/doc/
gxmldocdir = ${prefix}/doc/gxml
gxmldoc_DATA = \
README\
@@ -24,20 +31,75 @@ gxmldoc_DATA = \
INSTALL\
NEWS
-
+# with make dist
INTLTOOL_FILES = intltool-extract.in \
intltool-merge.in \
intltool-update.in
EXTRA_DIST = $(gxmldoc_DATA) \
+ autogen.sh \
$(INTLTOOL_FILES)
+
+
+
+# Lists of generated files you want to be able to clean
+
+MAINTAINERCLEANFILES = \
+ ABOUT-NLS \
+ $(srcdir)/aclocal.m4 \
+ $(srcdir)/compile \
+ $(srcdir)/config.guess \
+ $(srcdir)/config.h.in \
+ $(srcdir)/config.rpath \
+ $(srcdir)/config.sub \
+ $(srcdir)/depcomp \
+ $(srcdir)/install-sh \
+ $(srcdir)/ltmain.sh \
+ $(srcdir)/missing \
+ $(srcdir)/mkinstalldirs \
+ $(srcdir)/ChangeLog \
+ `find "$(srcdir)" -type f -name Makefile.in -print` \
+ `find "m4" -type f -name "*.m4" ! -name "as-compiler-flag.m4" ! -name "introspection.m4" ! -name "vala.m4" -print` \
+ po/Makevars.template \
+ po/Rules-quot \
+ po/boldquot.sed \
+ po/en boldquot header \
+ po/en quot header \
+ po/insert-header.sin \
+ po/missing \
+ po/quot.sed \
+ po/remove-potcdate.sin \
+ $(NULL)
+
DISTCLEANFILES = intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache
-# Remove doc directory on uninstall
+
+# Automatically generate ChangeLog from git
+# (do we need to call make ChangeLog ourselves?)
+
+ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $ tmp \
+ && mv -f $ tmp $@ \
+ || ($(RM) $ tmp; \
+ echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+ (test -f $@ || echo git-log is required to generate this file >> $@)); \
+ else \
+ test -f $@ || \
+ (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+ echo A git checkout and git-log is required to generate this file >> $@); \
+ fi
+
+.PHONY: ChangeLog
+
+
+
+# Remove doc directory on uninstall (not sure why :D)
uninstall-local:
-rm -r $(gxmldocdir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]