help/Makefile.am: silence construction of indexes, make build depend on index

This commit is contained in:
Aaron Jones 2017-10-30 15:45:23 +00:00
parent 16e66c174f
commit efd07994e7
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -15,7 +15,7 @@ SYMLINKS= topic accept cmode admin names links away whowas \
user help pass error challenge knock ping pong \ user help pass error challenge knock ping pong \
map trace chantrace extban monitor map trace chantrace extban monitor
all: all: index
build: build:
clean: clean:
depend: depend:
@ -23,7 +23,7 @@ lint:
index: index:
@echo building index files @echo building index files
rm -f users/index.tmp @rm -f users/index.tmp
@for help in users/*; do \ @for help in users/*; do \
if [ -f $$help ]; then \ if [ -f $$help ]; then \
echo $$help >> users/index.tmp; \ echo $$help >> users/index.tmp; \
@ -32,32 +32,32 @@ index:
@for help in $(SYMLINKS); do \ @for help in $(SYMLINKS); do \
echo $$help >> users/index.tmp; \ echo $$help >> users/index.tmp; \
done done
echo 'Help topics available to users:' > users/index @echo 'Help topics available to users:' > users/index
echo '' >> users/index @echo '' >> users/index
cat users/index.tmp \ @cat users/index.tmp \
| sed -e 's|^users/||' \ | sed -e 's|^users/||' \
| sort -u \ | sort -u \
| tr a-z A-Z \ | tr a-z A-Z \
| column -c 65 -x \ | column -c 65 -x \
| expand \ | expand \
>> users/index >> users/index
rm -f users/index.tmp @rm -f users/index.tmp
rm -f opers/index.tmp @rm -f opers/index.tmp
@for help in opers/*; do \ @for help in opers/*; do \
if [ -f $$help ]; then \ if [ -f $$help ]; then \
echo $$help >> opers/index.tmp; \ echo $$help >> opers/index.tmp; \
fi \ fi \
done done
echo 'Help topics available to opers:' > opers/index @echo 'Help topics available to opers:' > opers/index
echo '' >> opers/index @echo '' >> opers/index
cat opers/index.tmp \ @cat opers/index.tmp \
| sed -e 's|^opers/||' \ | sed -e 's|^opers/||' \
| sort -u \ | sort -u \
| tr a-z A-Z \ | tr a-z A-Z \
| column -c 65 -s ' ' -x \ | column -c 65 -s ' ' -x \
| expand \ | expand \
>> opers/index >> opers/index
rm -f opers/index.tmp @rm -f opers/index.tmp
install: install:
-@if test -d $(DESTDIR)$(helpdir)-old; then \ -@if test -d $(DESTDIR)$(helpdir)-old; then \