[gnome-photos] build: Enable maintainer mode by default
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] build: Enable maintainer mode by default
- Date: Sun, 18 Nov 2012 20:55:20 +0000 (UTC)
commit 07c53a69cf27d82af63c5e04505682edb4521a6a
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Nov 18 20:19:43 2012 +0100
build: Enable maintainer mode by default
Makefile.am | 4 +++-
configure.ac | 2 +-
src/Makefile.am | 55 +++++++++++++++++++++++++------------------------------
3 files changed, 29 insertions(+), 32 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1068e54..2129d16 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,13 +19,15 @@ photosdoc_DATA = \
README \
$(NULL)
+# There is no way to generate the AUTHORS in tarball builds
EXTRA_DIST = \
$(INTLTOOL_FILES) \
$(photosdoc_DATA) \
+ AUTHORS \
$(NULL)
+# We don't want to clean the AUTHORS in tarball builds
CLEANFILES = \
- AUTHORS \
$(NULL)
DISTCLEANFILES = \
diff --git a/configure.ac b/configure.ac
index 06a4f8d..ce19948 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AM_INIT_AUTOMAKE([dist-xz no-dist-gzip tar-ustar])
-AM_MAINTAINER_MODE
+AM_MAINTAINER_MODE([enable])
AC_PROG_CC
AC_PROG_CC_C_O
diff --git a/src/Makefile.am b/src/Makefile.am
index 571386e..49a56b5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,8 +13,11 @@ gnome_photos_built_sources = \
photos-tracker-resources.h \
$(NULL)
-gnome_photos_SOURCES = \
+nodist_gnome_photos_SOURCES = \
$(gnome_photos_built_sources) \
+ $(NULL)
+
+gnome_photos_SOURCES = \
eog-debug.c \
eog-debug.h \
eog-enums.h \
@@ -187,8 +190,6 @@ gnome_photos_LDADD = \
$(top_builddir)/libgd/libgd.la \
$(NULL)
-if MAINTAINER_MODE
-
CLEANFILES = \
$(gnome_photos_built_sources) \
stamp-photos-about-data.h \
@@ -207,10 +208,9 @@ photos-about-data.h: stamp-photos-about-data.h
stamp-photos-about-data.h: $(top_srcdir)/ARTISTS $(top_srcdir)/AUTHORS
$(AM_V_GEN) ( \
- cd $(srcdir) \
- && ( ./photos-generate-about \
+ ( $(srcdir)/photos-generate-about \
--header $(top_srcdir) \
- ) >> xgen-ah \
+ ) >> xgen-ah \
&& ( cmp -s xgen-ah photos-about-data.h || cp xgen-ah photos-about-data.h ) \
&& rm -f xgen-ah \
&& echo timestamp > $(@F) \
@@ -218,9 +218,8 @@ stamp-photos-about-data.h: $(top_srcdir)/ARTISTS $(top_srcdir)/AUTHORS
photos-about-data.c: $(top_srcdir)/ARTISTS $(top_srcdir)/AUTHORS
$(AM_V_GEN) ( \
- cd $(srcdir) \
- && echo "#include \"photos-about-data.h\"" > xgen-ac \
- && ( ./photos-generate-about \
+ echo "#include \"photos-about-data.h\"" > xgen-ac \
+ && ( $(srcdir)/photos-generate-about \
--body $(top_srcdir) \
) >> xgen-ac \
&& ( cmp -s xgen-ac photos-about-data.c || cp xgen-ac photos-about-data.c ) \
@@ -232,11 +231,10 @@ photos-enums.h: stamp-photos-enums.h
stamp-photos-enums.h: photos-enums.h.template
$(AM_V_GEN) ( \
- cd $(srcdir) \
- && ( glib-mkenums \
- --template photos-enums.h.template \
- photos-mode-controller.h \
- ) >> xgen-etbh \
+ ( glib-mkenums \
+ --template $(srcdir)/photos-enums.h.template \
+ $(srcdir)/photos-mode-controller.h \
+ ) >> xgen-etbh \
&& ( cmp -s xgen-etbh photos-enums.h || cp xgen-etbh photos-enums.h ) \
&& rm -f xgen-etbh \
&& echo timestamp > $(@F) \
@@ -244,11 +242,10 @@ stamp-photos-enums.h: photos-enums.h.template
photos-enums.c: photos-enums.c.template
$(AM_V_GEN) ( \
- cd $(srcdir) \
- && ( glib-mkenums \
- --template photos-enums.c.template \
- photos-mode-controller.h \
- ) >> xgen-etbc \
+ ( glib-mkenums \
+ --template $(srcdir)/photos-enums.c.template \
+ $(srcdir)/photos-mode-controller.h \
+ ) >> xgen-etbc \
&& ( cmp -s xgen-etbc photos-enums.c || cp xgen-etbc photos-enums.c ) \
&& rm -f xgen-etbc \
)
@@ -258,10 +255,10 @@ photos-marshalers.h: stamp-photos-marshalers.h
stamp-photos-marshalers.h: photos-marshalers.list Makefile
$(AM_V_GEN) ( \
- cd $(srcdir) \
- && ( glib-genmarshal \
+ ( glib-genmarshal \
--prefix=_photos_marshal \
- --header photos-marshalers.list ) >> xgen-tmh \
+ --header $(srcdir)/photos-marshalers.list \
+ ) >> xgen-tmh \
&& ( cmp -s xgen-tmh photos-marshalers.h || cp xgen-tmh photos-marshalers.h ) \
&& rm -f xgen-tmh \
&& echo timestamp > $(@F) \
@@ -269,22 +266,22 @@ stamp-photos-marshalers.h: photos-marshalers.list Makefile
photos-marshalers.c: photos-marshalers.list photos-marshalers.h Makefile
$(AM_V_GEN) ( \
- cd $(srcdir) \
- && echo "#include \"photos-marshalers.h\"" > xgen-tmc \
+ echo "#include \"photos-marshalers.h\"" > xgen-tmc \
&& ( glib-genmarshal \
--prefix=_photos_marshal \
- --body photos-marshalers.list ) >> xgen-tmc \
+ --body $(srcdir)/photos-marshalers.list \
+ ) >> xgen-tmc \
&& cp xgen-tmc photos-marshalers.c \
&& rm -f xgen-tmc \
)
-photos-resources.c: photos.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies $(srcdir)/photos.gresource.xml)
+photos-resources.c: photos.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/photos.gresource.xml)
$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ \
--sourcedir=$(srcdir) \
--generate-source \
$<
-photos-resources.h: photos.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies $(srcdir)/photos.gresource.xml)
+photos-resources.h: photos.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/photos.gresource.xml)
$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ \
--sourcedir=$(srcdir) \
--generate-header \
@@ -295,6 +292,4 @@ photos-tracker-resources.h photos-tracker-resources.c: photos-tracker-resources.
--c-namespace Tracker \
--generate-c-code photos-tracker-resources \
--interface-prefix org.freedesktop.Tracker1. \
- photos-tracker-resources.xml
-
-endif
+ $(srcdir)/photos-tracker-resources.xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]