aboutsummaryrefslogtreecommitdiffstats
path: root/macros/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'macros/Makefile.am')
-rw-r--r--macros/Makefile.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/macros/Makefile.am b/macros/Makefile.am
index c354713040..2922a907ac 100644
--- a/macros/Makefile.am
+++ b/macros/Makefile.am
@@ -22,8 +22,18 @@ MACROS= \
linger.m4 \
need-declaration.m4
-EXTRA_DIST=$(MACROS) autogen.sh
+EXTRA_DIST=$(MACROS) gnome-common.m4 autogen.sh
MAINTAINERCLEANFILES=macros.dep
@MAINT@macros.dep: Makefile.am
@MAINT@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
+
+if INSIDE_GNOME_COMMON
+gnome_aclocaldir = $(datadir)/aclocal/gnome
+
+gnome-macros.dep: Makefile.am
+ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
+
+gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
+
+endif