From 31f60e2cec390bc55b118609c8e2b17eeeefca71 Mon Sep 17 00:00:00 2001 From: jmmv Date: Tue, 16 Sep 2003 20:31:00 +0000 Subject: Abort "make readme-all" before it fails (when there are no README.html files available) and tell the user what to do. Addresses PR pkg/22413. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 56eea6ffb32..9a12e16b62c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.58 2003/07/25 02:44:09 grant Exp $ +# $NetBSD: Makefile,v 1.59 2003/09/16 20:31:00 jmmv Exp $ # .include "mk/bsd.prefs.mk" @@ -187,6 +187,11 @@ README-all.html: fi .endfor @${ECHO} "." + @if [ ! -f $@.new ]; then \ + ${ECHO} "There are no categories with README.html files available."; \ + ${ECHO} "You need to run \`${MAKE} readme' to generate them before running this target."; \ + ${FALSE}; \ + fi @${SORT} -f -t '">' +2 <$@.new >$@.newsorted @${WC} -l $@.newsorted | ${AWK} '{ print $$1 }' >$@.npkgs @${CAT} templates/README.all \ -- cgit v1.2.3