X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/3ad05a0dc46093dd6b8958747a0475b8baba954f..1048151cc4bec79f7310f4f2ede309889822a6bb:/Makefile.in diff --git a/Makefile.in b/Makefile.in index b212c914e5..7aac403ada 100644 --- a/Makefile.in +++ b/Makefile.in @@ -925,14 +925,17 @@ extraclean: $(extraclean_dirs:=_extraclean) TAGS tags: lib lib-src src $(MAKE) -C src tags -check check-expensive: all - @if test ! -d test/automated; then \ +.PHONY: have-tests +have-tests: + @if test ! -d test; then \ echo "You do not seem to have the test/ directory."; \ echo "Maybe you are using a release tarfile, rather than a repository checkout."; \ - else \ - $(MAKE) -C test/automated $@; \ + exit 1; \ fi +check check-maybe check-expensive: have-tests all + $(MAKE) -C test $@ + dist: cd ${srcdir}; ./make-dist @@ -947,7 +950,7 @@ $(DOCS): $(MAKE) -C doc/$(subst -, ,$@) .PHONY: $(DOCS) docs pdf ps -.PHONY: info dvi dist check check-expensive html info-real info-dir check-info +.PHONY: info dvi dist check check-maybe check-expensive html info-real info-dir check-info ## TODO add etc/refcards. docs: $(DOCS) @@ -1093,7 +1096,7 @@ bootstrap: bootstrap-clean $(MAKE) all .PHONY: ChangeLog change-history change-history-commit change-history-nocommit -.PHONY: emacs-25-branch-is-current unchanged-history-files +.PHONY: preferred-branch-is-current unchanged-history-files CHANGELOG = ChangeLog emacslog = build-aux/gitlog-to-emacslog @@ -1110,8 +1113,9 @@ ChangeLog: ./$(emacslog) -o $(CHANGELOG) -n $(CHANGELOG_HISTORY_INDEX_MAX) # Check that we are in a good state for changing history. -emacs-25-branch-is-current: - git branch | grep -q '^\* emacs-25$$' +PREFERRED_BRANCH = master +preferred-branch-is-current: + git branch | grep -q '^\* $(PREFERRED_BRANCH)$$' unchanged-history-files: x=$$(git diff-files --name-only $(CHANGELOG_N) $(emacslog)) && \ test -z "$$x" @@ -1121,7 +1125,7 @@ new_commit_regexp = ^commit [0123456789abcdef]* (inclusive) # Copy newer commit messages to the start of the ChangeLog history file, # and consider them to be older. -change-history-nocommit: emacs-25-branch-is-current unchanged-history-files +change-history-nocommit: preferred-branch-is-current unchanged-history-files -rm -f ChangeLog.tmp $(MAKE) ChangeLog CHANGELOG=ChangeLog.tmp sed '/^This file records repository revisions/,$$d' \