diff --git a/Makefile b/Makefile index fe7595bea70dee..799bb2640ea89a 100644 --- a/Makefile +++ b/Makefile @@ -762,12 +762,11 @@ PKG=$(TARNAME).pkg MACOSOUTDIR=out/macos release-only: - @if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \ - `grep -q REPLACEME doc/api/*.md`; then \ + @if [ "$(DISTTYPE)" = "release" ] && `grep -q REPLACEME doc/api/*.md`; then \ echo 'Please update REPLACEME in Added: tags in doc/api/*.md (See doc/releases.md)' ; \ exit 1 ; \ fi - @if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \ + @if [ "$(DISTTYPE)" = "release" ] && \ `grep -q DEP00XX doc/api/deprecations.md`; then \ echo 'Please update DEP00XX in doc/api/deprecations.md (See doc/releases.md)' ; \ exit 1 ; \