summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-11-08 18:46:28 -0800
committerStefano Karapetsas <[email protected]>2013-11-08 18:46:28 -0800
commit54b7a64c8f3d9a904acfdc0a5dd79141788b4d16 (patch)
tree969a8352e8a2fa538e4c64b87fa739440a2023ad
parentc3b8c88722b5eee2a9ccfebe45cbce7b3b73dfce (diff)
parentd52a4ac5dada42cc49e11818da3a14e8253711a5 (diff)
downloadmate-settings-daemon-54b7a64c8f3d9a904acfdc0a5dd79141788b4d16.tar.bz2
mate-settings-daemon-54b7a64c8f3d9a904acfdc0a5dd79141788b4d16.tar.xz
Merge pull request #55 from infirit/master
Fixes and cleanups
-rw-r--r--Makefile.am16
-rw-r--r--configure.ac1
-rw-r--r--mate-settings-daemon/Makefile.am3
-rw-r--r--plugins/media-keys/cut-n-paste/Makefile.am6
4 files changed, 22 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index 14617a5..2d42695 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,7 @@
NULL =
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
SUBDIRS = \
mate-settings-daemon \
plugins \
@@ -14,3 +16,17 @@ EXTRA_DIST = \
DISTCLEANFILES = \
$(NULL)
+
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ (GIT_DIR=$(top_srcdir)/.git \
+ ./missing --run git log --stat -M -C --name-status --date=short --no-color) | \
+ fmt --split-only > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; \
+ echo Failed to generate ChangeLog >&2 ); \
+ else \
+ echo A git clone is required to generate a ChangeLog >&2; \
+ fi
diff --git a/configure.ac b/configure.ac
index f0adcd5..fc836f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,7 @@ AC_INIT([mate-settings-daemon],
[http://www.mate-desktop.org/])
AC_CONFIG_SRCDIR([mate-settings-daemon/mate-settings-manager.c])
+AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.9 no-dist-gzip dist-xz tar-ustar])
diff --git a/mate-settings-daemon/Makefile.am b/mate-settings-daemon/Makefile.am
index 778cb92..7fb6fdc 100644
--- a/mate-settings-daemon/Makefile.am
+++ b/mate-settings-daemon/Makefile.am
@@ -1,6 +1,6 @@
NULL =
-INCLUDES = \
+AM_CPPFLAGS = \
-DDATADIR=\""$(datadir)"\" \
-DMATE_SETTINGS_LOCALEDIR=\""$(datadir)/locale"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
@@ -21,6 +21,7 @@ libmsd_profile_la_SOURCES = \
$(NULL)
libmsd_profile_la_CPPFLAGS = \
+ $(AM_CPPFLAGS)
$(DISABLE_DEPRECATED_CFLAGS) \
$(NULL)
diff --git a/plugins/media-keys/cut-n-paste/Makefile.am b/plugins/media-keys/cut-n-paste/Makefile.am
index 28a9f77..f5707da 100644
--- a/plugins/media-keys/cut-n-paste/Makefile.am
+++ b/plugins/media-keys/cut-n-paste/Makefile.am
@@ -2,7 +2,7 @@ NULL =
noinst_LTLIBRARIES = libgvc.la
-INCLUDES = \
+AM_CPPFLAGS = \
$(WARN_CFLAGS) \
$(NULL)
@@ -13,7 +13,7 @@ libgvc_la_SOURCES = \
$(NULL)
if HAVE_PULSE
-INCLUDES += \
+AM_CPPFLAGS += \
$(VOLUME_CONTROL_CFLAGS) \
$(PULSE_CFLAGS)
@@ -43,7 +43,7 @@ libgvc_la_SOURCES += \
endif
if HAVE_GSTREAMER
-INCLUDES += \
+AM_CPPFLAGS += \
$(SETTINGS_PLUGIN_CFLAGS) \
$(AM_CFLAGS) \
$(GST_CFLAGS)