1 # Generated automatically from Makefile.in by configure.
2 # $Id: Makefile.in 1044 2006-03-12 16:05:39Z jilles $
3 # makefile for include/
6 INSTALL_DATA= @INSTALL_DATA@
10 exec_prefix= @execprefix@
12 uhelpdir= ${helpdir}/users
13 ohelpdir= ${helpdir}/opers
15 SYMLINKS= topic accept admin extban names links away whowas \
16 version kick who invite quit join list nick oper part \
17 time credits motd userhost users whois ison lusers \
18 user help pass error challenge knock ping pong \
19 cprivmsg cnotice map trace chantrace cycle findforwards \
29 @echo building index files
31 @for help in users/*; do \
32 if [ -f $$help ]; then \
33 echo $$help >> users/index.tmp; \
36 @for help in $(SYMLINKS); do \
37 echo $$help >> users/index.tmp; \
39 echo 'Help topics available to users:' > users/index
40 echo '' >> users/index
42 | sed -e 's|^users/||' \
50 @for help in opers/*; do \
51 if [ -f $$help ]; then \
52 echo $$help >> opers/index.tmp; \
55 echo 'Help topics available to opers:' > opers/index
56 echo '' >> opers/index
58 | sed -e 's|^opers/||' \
61 | column -c 65 -s ' ' -x \
67 -@if test -d $(DESTDIR)$(helpdir)-old; then \
68 rm -rf $(DESTDIR)$(helpdir)-old; \
70 -@if test -d $(DESTDIR)$(helpdir); then \
71 echo "ircd: backing up old help files"; \
72 mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
75 @echo "ircd: setting up help directory structure"
76 @mkdir -p -m 755 $(DESTDIR)$(helpdir)
77 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/opers
78 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/users
80 @for help in opers/*; do \
81 if [ -f $$help ]; then \
82 ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
85 @for help in users/*; do \
86 if [ -f $$help ]; then \
87 $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
90 @for link in $(SYMLINKS); do \
91 rm -f $(DESTDIR)$(uhelpdir)/$$link; \
92 ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \