diff options
author | jmmv <jmmv> | 2003-09-16 20:31:00 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2003-09-16 20:31:00 +0000 |
commit | 6c5dd178ce89e71ccbad41966d3c8069523afd80 (patch) | |
tree | 62a6603089461689743209930775e47003f78724 /Makefile | |
parent | fec8b8a52ed2a3983046f5f5702fb4991c4ffac1 (diff) | |
download | pkgsrc-6c5dd178ce89e71ccbad41966d3c8069523afd80.tar.gz |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 \ |