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 \
map trace chantrace extban monitor
all:
all: index
build:
clean:
depend:
@ -23,7 +23,7 @@ lint:
index:
@echo building index files
rm -f users/index.tmp
@rm -f users/index.tmp
@for help in users/*; do \
if [ -f $$help ]; then \
echo $$help >> users/index.tmp; \
@ -32,32 +32,32 @@ index:
@for help in $(SYMLINKS); do \
echo $$help >> users/index.tmp; \
done
echo 'Help topics available to users:' > users/index
echo '' >> users/index
cat users/index.tmp \
@echo 'Help topics available to users:' > users/index
@echo '' >> users/index
@cat users/index.tmp \
| sed -e 's|^users/||' \
| sort -u \
| tr a-z A-Z \
| column -c 65 -x \
| expand \
>> users/index
rm -f users/index.tmp
rm -f opers/index.tmp
@rm -f users/index.tmp
@rm -f opers/index.tmp
@for help in opers/*; do \
if [ -f $$help ]; then \
echo $$help >> opers/index.tmp; \
fi \
done
echo 'Help topics available to opers:' > opers/index
echo '' >> opers/index
cat opers/index.tmp \
@echo 'Help topics available to opers:' > opers/index
@echo '' >> opers/index
@cat opers/index.tmp \
| sed -e 's|^opers/||' \
| sort -u \
| tr a-z A-Z \
| column -c 65 -s ' ' -x \
| expand \
>> opers/index
rm -f opers/index.tmp
@rm -f opers/index.tmp
install:
-@if test -d $(DESTDIR)$(helpdir)-old; then \