Manage help indexes properly in makefile

This commit is contained in:
Ed Kellett 2020-10-21 01:45:09 +01:00
parent 63cad9d882
commit d0dc83b60a

View file

@ -1,5 +1,5 @@
# Generated automatically from Makefile.in by configure.
# makefile for include/
# makefile for help/
AUTOMAKE_OPTIONS = foreign
@ -17,10 +17,12 @@ SYMLINKS= topic accept cmode admin names links away whowas \
all: index
build:
clean:
depend:
lint:
clean:
rm -f users/index users/index.tmp opers/index opers/index.tmp
index:
@echo building index files
@rm -f users/index.tmp
@ -59,7 +61,7 @@ index:
>> opers/index
@rm -f opers/index.tmp
install:
install: index
-@if test -d $(DESTDIR)$(helpdir)-old; then \
rm -rf $(DESTDIR)$(helpdir)-old; \
fi