libwine: Avoid writing to repository during install.

This commit is contained in:
Paul Bryan Roberts 2009-01-14 07:20:30 +00:00 committed by Alexandre Julliard
parent e7a27694b9
commit d2b13825e4
2 changed files with 3 additions and 7 deletions

1
libs/.gitignore vendored
View File

@ -1,4 +1,3 @@
*.dylib
*.so.*
wine/version-stamp
wine/version.c

View File

@ -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