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