1 # Generated automatically from Makefile.in by configure.
4 AUTOMAKE_OPTIONS = foreign
7 exec_prefix= @execprefix@
9 uhelpdir= ${helpdir}/users
10 ohelpdir= ${helpdir}/opers
12 CLEANFILES= users/index users/index.tmp opers/index opers/index.tmp
14 SYMLINKS= topic accept cmode admin names links away whowas \
15 version kick who invite quit join list nick oper part \
16 time credits motd userhost users whois ison lusers \
17 user help pass error challenge knock ping pong \
18 map trace chantrace extban monitor
26 @echo building index files
27 @rm -f users/index.tmp
28 @for help in users/*; do \
29 if [ -f $$help ]; then \
30 echo $$help >> users/index.tmp; \
33 @for help in $(SYMLINKS); do \
34 echo $$help >> users/index.tmp; \
36 @echo 'Help topics available to users:' > users/index
37 @echo '' >> users/index
38 @cat users/index.tmp \
39 | sed -e 's|^users/||' \
45 @rm -f users/index.tmp
46 @rm -f opers/index.tmp
47 @for help in opers/*; do \
48 if [ -f $$help ]; then \
49 echo $$help >> opers/index.tmp; \
52 @echo 'Help topics available to opers:' > opers/index
53 @echo '' >> opers/index
54 @cat opers/index.tmp \
55 | sed -e 's|^opers/||' \
58 | column -c 65 -s ' ' -x \
61 @rm -f opers/index.tmp
64 -@if test -d $(DESTDIR)$(helpdir)-old; then \
65 rm -rf $(DESTDIR)$(helpdir)-old; \
67 -@if test -d $(DESTDIR)$(helpdir); then \
68 echo "ircd: backing up old help files"; \
69 mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
72 @echo "ircd: setting up help directory structure"
73 @mkdir -p -m 755 $(DESTDIR)$(helpdir)
74 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/opers
75 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/users
77 @for help in opers/*; do \
78 if [ -f $$help ]; then \
79 ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
82 @for help in users/*; do \
83 if [ -f $$help ]; then \
84 $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
87 @for link in $(SYMLINKS); do \
88 rm -f $(DESTDIR)$(uhelpdir)/$$link; \
89 ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \