# distribute all files that are under version control ...
# ... plus (for convenience):
-DISTINCLUDE = config.h.in configure stamp-h.in sbr/dtimep.c
+DISTINCLUDE = config.h.in configure stamp-h.in sbr/dtimep.c ChangeLog
# ... minus (git stuff):
DISTEXCLUDE = .git .gitignore
clean-local: mostlyclean-local
distclean-local: clean-local
- rm -f Makefile config.h config.status config.log config.cache stamp-h distname
+ rm -f Makefile config.h config.status config.log config.cache stamp-h distname ChangeLog
realclean-local: distclean-local
config.status: configure VERSION
./config.status --recheck
-configure: configure.ac aclocal.m4
+configure: configure.ac
cd $(srcdir) && autoconf
config.h: stamp-h
./config.status config.h stamp
config.h.in: stamp-h.in
-stamp-h.in: configure.ac acconfig.h aclocal.m4
+stamp-h.in: configure.ac
cd $(srcdir) && autoheader
date > $@
sbr/dtimep.c:
@cd $(srcdir)/sbr && $(MAKE) dtimep.c
+ChangeLog:
+ @git whatchanged --format=fuller > $@
+
# build mmh distribution
distdir = `cat distname`
mmhdist: $(DISTINCLUDE) distname
@chmod 755 $(distdir)
@for file in $(DISTINCLUDE); do \
cp -p $(srcdir)/$$file $(distdir)/$$file; \
+ touch $(distdir)/$$file; \
done
@for file in $(DISTEXCLUDE); do \
rm -rf $(distdir)/$$file; \