Skip to content

Instantly share code, notes, and snippets.

@ajorg
Created August 26, 2010 18:36
Show Gist options
  • Save ajorg/551933 to your computer and use it in GitHub Desktop.
Save ajorg/551933 to your computer and use it in GitHub Desktop.
diff --git a/Makefile.am b/Makefile.am
index 1a75a56..0017405 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,10 +24,11 @@ EXTRA_DIST= nls.m4 po.m4 progtest.m4 mono-uninstalled.pc.in build-mingw32.sh LIC
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
+GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
- test ! -d .git || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
+ test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment