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.
This commit is contained in:
parent
613377f2d8
commit
31f60e2cec
1 changed files with 6 additions and 1 deletions
7
Makefile
7
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 \
|
||||
|
|
Loading…
Reference in a new issue