X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=Makefile.in;h=4012a2d3facb456f3eff42f8c32a2ae1670c2451;hp=abe21a778018e85f47d1e3a6747d0bd383426660;hb=431604647f89d5aac7b199a7883e98e56e4ccf9e;hpb=aac675d09723c457707ef877ce4bb45055096d7b diff --git a/Makefile.in b/Makefile.in index abe21a7..4012a2d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -2,15 +2,15 @@ # Makefile for top level of mmh distribution # -# mmh version -VERSION = @VERSION@ - SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ VPATH = @srcdir@ +# mmh version +VERSION = `sed q $(srcdir)/VERSION` + # ========== USER CONFIGURATION SECTION ========== # # If `make' is executed in the directory containing this Makefile, @@ -143,7 +143,7 @@ stamp-h: config.h.in config.status ./config.status config.h stamp config.h.in: stamp-h.in -stamp-h.in: configure.ac acconfig.h +stamp-h.in: configure.ac cd $(srcdir) && autoheader date > $@ @@ -175,13 +175,15 @@ mmhdist: $(DISTINCLUDE) distname @echo "Copying files to distribution directory" @git clone $(srcdir) $(distdir) @chmod 755 $(distdir) + @sleep 1 #avoid rebuilding sbr/dtimep.c in release @for file in $(DISTINCLUDE); do \ cp -p $(srcdir)/$$file $(distdir)/$$file; \ + touch $(distdir)/$$file; \ done @for file in $(DISTEXCLUDE); do \ rm -rf $(distdir)/$$file; \ done @chmod -R a+r $(distdir) - tar chf - $(distdir) | gzip -c > $(tarfile) + tar --owner=0 --group=0 -chf - $(distdir) | gzip -c > $(tarfile) @rm -rf $(distdir) distname @echo "Done building mmh-$(VERSION) distribution"