X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=Makefile.in;fp=Makefile.in;h=21ffdb23a18fc2431f608e8e736886f0cf6f2ef1;hp=83af4c2470b516c1536b1e2ea6396f15165fe60b;hb=d5d94ce76327869346e2b02b7b02a3620ddd38eb;hpb=776e627ad8aaa4d75bf1f7db04142a0f3bdf80ad diff --git a/Makefile.in b/Makefile.in index 83af4c2..21ffdb2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -63,16 +63,13 @@ INSTALL_DATA = @INSTALL_DATA@ .SUFFIXES: -# all files in this directory included in the distribution -DIST = COPYRIGHT DATE INSTALL README VERSION \ - autogen.sh install-sh Makefile.in aclocal.m4 \ - acconfig.h config.h.in configure.ac configure stamp-h.in \ - config.sub config.guess +# distribute all files that are under version control ... +# ... plus (for convenience): +DISTINCLUDE = config.h.in configure stamp-h.in sbr/dtimep.c +# ... minus (git stuff): +DISTEXCLUDE = .git .gitignore -# these directories included in the distribution -DISTDIRS = docs test - -# subdirectories in distribution +# Subdirectories with own Makefiles SUBDIRS = h config sbr uip etc man # ========== DEPENDENCIES FOR BUILDING AND INSTALLING ========== @@ -163,27 +160,25 @@ tarfile = mmh-$(VERSION).tar.gz distname: @echo mmh-$(VERSION) > distname +# pre-generate this file so users don't need lex(1) +sbr/dtimep.c: + @cd $(srcdir)/sbr && $(MAKE) dtimep.c + # build mmh distribution distdir = `cat distname` -mmhdist: $(DIST) distname +mmhdist: $(DISTINCLUDE) distname @echo "Begin building mmh-$(VERSION) distribution" - rm -rf $(distdir) - mkdir $(distdir) + @rm -rf $(distdir) + @echo "Copying files to distribution directory" + @git clone $(srcdir) $(distdir) @chmod 755 $(distdir) - @echo "Copying distribution files in main directory" - @for file in $(DIST); do \ - cp -p $(srcdir)/$$file $(distdir); \ - done - @echo "Copying distribution dirs in main directory" - @for dir in $(DISTDIRS); do \ - cp -rp $(srcdir)/$$dir $(distdir); \ + @for file in $(DISTINCLUDE); do \ + cp -p $(srcdir)/$$file $(distdir)/$$file; \ done - @for subdir in $(SUBDIRS); do \ - mkdir $(distdir)/$$subdir; \ - chmod 755 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) $@) || exit 1; \ + @for file in $(DISTEXCLUDE); do \ + rm -rf $(distdir)/$$file; \ done - chmod -R a+r $(distdir) + @chmod -R a+r $(distdir) tar chf - $(distdir) | gzip -c > $(tarfile) - rm -rf $(distdir) distname + @rm -rf $(distdir) distname @echo "Done building mmh-$(VERSION) distribution"