From 4c232abc3734a32f10321324d9b05c3456023d46 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Fri, 7 Feb 2014 17:18:24 +0100 Subject: Remove old code for generating the buildinfo file --- main/Makefile.am | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'main/Makefile.am') 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 -- cgit v1.2.3