From d2b13825e402c970c4eeb1a1ed174deb26267782 Mon Sep 17 00:00:00 2001 From: Paul Bryan Roberts Date: Wed, 14 Jan 2009 07:20:30 +0000 Subject: [PATCH] libwine: Avoid writing to repository during install. --- libs/.gitignore | 1 - libs/wine/Makefile.in | 9 +++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libs/.gitignore b/libs/.gitignore index b332749eef8..f793fc9b423 100644 --- a/libs/.gitignore +++ b/libs/.gitignore @@ -1,4 +1,3 @@ *.dylib *.so.* -wine/version-stamp wine/version.c diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in index 6bdf55fee78..c84684844ea 100644 --- a/libs/wine/Makefile.in +++ b/libs/wine/Makefile.in @@ -176,14 +176,11 @@ uninstall:: -cd $(DESTDIR)$(libdir) && $(RM) libwine.a libwine.dll libwine.so libwine.so.$(VERSION) \ libwine.so.$(SOVERSION) libwine.dylib libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib -version-stamp: dummy - (GIT_DIR=$(TOPSRCDIR)/.git git describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -n -e '$$s/\(.*\)/const char wine_build[] = "\1";/p' >$@ || ($(RM) $@ && exit 1) - -version.c: version-stamp - @cmp -s version-stamp $@ || cp version-stamp $@ +version.c: dummy + version=`(GIT_DIR=$(TOPSRCDIR)/.git git describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -n -e '$$s/\(.*\)/const char wine_build[] = "\1";/p'` && (echo $$version | cmp -s - $@) || echo $$version >$@ || ($(RM) $@ && exit 1) clean:: - $(RM) libwine.so.$(SOVERSION) libwine.so.$(VERSION) version.c version-stamp + $(RM) libwine.so.$(SOVERSION) libwine.so.$(VERSION) version.c $(RELPATH): @cd $(TOOLSDIR)/tools && $(MAKE) relpath