]> jfr.im git - irc/rqf/shadowircd.git/blame - help/Makefile.in
Add helpfiles for all extensions that provide commands.
[irc/rqf/shadowircd.git] / help / Makefile.in
CommitLineData
212380e3 1# Generated automatically from Makefile.in by configure.
2# $Id: Makefile.in 1044 2006-03-12 16:05:39Z jilles $
3# makefile for include/
4
5INSTALL= @INSTALL@
6INSTALL_DATA= @INSTALL_DATA@
7RM= @RM@
8
9prefix= @prefix@
10exec_prefix= @execprefix@
11helpdir= @helpdir@
12uhelpdir= ${helpdir}/users
13ohelpdir= ${helpdir}/opers
14
bcd6e78c 15SYMLINKS= topic accept admin names links away whowas \
212380e3 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 \
5c34bc99
JH
19 cprivmsg cnotice map trace chantrace cycle findforwards \
20 identify mkpasswd
212380e3 21
22all:
23build:
24clean:
25depend:
26lint:
27
28index:
29 @echo building index files
30 rm -f users/index.tmp
31 @for help in users/*; do \
32 if [ -f $$help ]; then \
33 echo $$help >> users/index.tmp; \
34 fi \
35 done
36 @for help in $(SYMLINKS); do \
37 echo $$help >> users/index.tmp; \
38 done
39 echo 'Help topics available to users:' > users/index
40 echo '' >> users/index
41 cat users/index.tmp \
42 | sed -e 's|^users/||' \
43 | sort -u \
44 | tr a-z A-Z \
45 | column -c 65 -x \
46 | expand \
47 >> users/index
48 rm -f users/index.tmp
49 rm -f opers/index.tmp
50 @for help in opers/*; do \
51 if [ -f $$help ]; then \
52 echo $$help >> opers/index.tmp; \
53 fi \
54 done
55 echo 'Help topics available to opers:' > opers/index
56 echo '' >> opers/index
57 cat opers/index.tmp \
58 | sed -e 's|^opers/||' \
59 | sort -u \
60 | tr a-z A-Z \
61 | column -c 65 -s ' ' -x \
62 | expand \
63 >> opers/index
64 rm -f opers/index.tmp
65
66install:
67 -@if test -d $(DESTDIR)$(helpdir)-old; then \
68 rm -rf $(DESTDIR)$(helpdir)-old; \
69 fi
70 -@if test -d $(DESTDIR)$(helpdir); then \
71 echo "ircd: backing up old help files"; \
72 mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
73 fi
74
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
79
80 @for help in opers/*; do \
81 if [ -f $$help ]; then \
82 ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
83 fi \
84 done
85 @for help in users/*; do \
86 if [ -f $$help ]; then \
87 $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
88 fi \
89 done
90 @for link in $(SYMLINKS); do \
91 rm -f $(DESTDIR)$(uhelpdir)/$$link; \
92 ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \
93 done
94
95
96distclean:
97 ${RM} -f Makefile
98
99depend: