diff options
Diffstat (limited to 'main/Makefile.am')
-rw-r--r-- | main/Makefile.am | 26 |
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 |