Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2014-02-07 20:18:24 +0400
committerLluis Sanchez <lluis@xamarin.com>2014-02-07 20:18:59 +0400
commit4c232abc3734a32f10321324d9b05c3456023d46 (patch)
treeb79bb725b6e7ab0748123c09372d108f349d1145 /main/Makefile.am
parent17111f34ec4370cdb21b42d2e80f9723626f6a8a (diff)
Remove old code for generating the buildinfo file
Diffstat (limited to 'main/Makefile.am')
-rw-r--r--main/Makefile.am26
1 files changed, 6 insertions, 20 deletions
diff --git a/main/Makefile.am b/main/Makefile.am
index 8c039cc542..2ce629d20c 100644
--- a/main/Makefile.am
+++ b/main/Makefile.am
@@ -2,6 +2,8 @@ include $(top_srcdir)/xbuild.include
SUBDIRS = external . contrib src po man theme-icons build tests
+MD_CONFIGURE=$(top_srcdir)/../scripts/configure.sh
+
#capture aclocal flags for autoreconf
ACLOCAL_AMFLAGS=$(ACLOCAL_FLAGS)
@@ -9,31 +11,15 @@ bin_SCRIPTS = monodevelop mdtool
buildinfo = $(top_builddir)/build/bin/buildinfo
-all: vcrevision
-
all-local: sln_build
clean: clean-local
clean-local: sln_clean
-vcrevision:
- @if test -d ../.git; then \
- version=$$(cd ..; \
- LANG=C; export LANG; \
- git rev-parse HEAD; \
- ); \
- echo "$$version" > "vcrevision"; \
- else \
- if test ! -f ./vcrevision; then \
- echo "unknown" > "vcrevision"; \
- fi; \
- fi
-
-$(buildinfo): vcrevision
+$(buildinfo):
@mkdir -p "$(top_builddir)/build/bin"
- @echo "Git revision: $$(cat $(top_srcdir)/vcrevision)" > "$@"
- @echo "Build date: $$(date -u +'%Y-%m-%d %H:%M:%S%z')" >> "$@"
+ @$(MD_CONFIGURE) gen-buildinfo "$(top_builddir)/build/bin"
@echo "Updated build information"
@cat $(buildinfo)
@@ -169,7 +155,7 @@ app-dir: all
# we can't use the variables that are conditionally defined
EXTRA_DIST = $(bin_SCRIPTS) $(desktop_DATA) $(pixmap_DATA) \
- monodevelop.xml $(pkgconfig_in_files) vcrevision external/Makefile.in \
+ monodevelop.xml $(pkgconfig_in_files) external/Makefile.in \
Main.sln \
md.targets
@@ -192,4 +178,4 @@ distuninstallcheck_listfiles += $(filter_stale_uninstalled) # amend by required
distcleancheck_listfiles = find . -type f -print # automake-1.9 setting
distcleancheck_listfiles += $(filter_stale_buildfiles) # amend by required filtering
-.PHONY: vcrevision buildinfo
+.PHONY: buildinfo