]> jfr.im git - solanum.git/blame - help/Makefile.am
Add a comment explaining match_arrange_stars
[solanum.git] / help / Makefile.am
CommitLineData
c52df125 1# Generated automatically from Makefile.in by configure.
d0dc83b6 2# makefile for help/
c52df125 3
d0dc83b6 4AUTOMAKE_OPTIONS = foreign
c52df125
AC
5
6prefix= @prefix@
7exec_prefix= @execprefix@
8helpdir= @helpdir@
9uhelpdir= ${helpdir}/users
10ohelpdir= ${helpdir}/opers
11
12SYMLINKS= 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 \
27aca3c3 16 map trace chantrace extban monitor
c52df125 17
efd07994 18all: index
c52df125 19build:
c52df125
AC
20depend:
21lint:
22
d0dc83b6
EK
23clean:
24 rm -f users/index users/index.tmp opers/index opers/index.tmp
25
c52df125
AC
26index:
27 @echo building index files
efd07994 28 @rm -f users/index.tmp
c52df125
AC
29 @for help in users/*; do \
30 if [ -f $$help ]; then \
31 echo $$help >> users/index.tmp; \
32 fi \
33 done
34 @for help in $(SYMLINKS); do \
35 echo $$help >> users/index.tmp; \
36 done
efd07994
AJ
37 @echo 'Help topics available to users:' > users/index
38 @echo '' >> users/index
39 @cat users/index.tmp \
c52df125
AC
40 | sed -e 's|^users/||' \
41 | sort -u \
42 | tr a-z A-Z \
43 | column -c 65 -x \
44 | expand \
45 >> users/index
efd07994
AJ
46 @rm -f users/index.tmp
47 @rm -f opers/index.tmp
c52df125
AC
48 @for help in opers/*; do \
49 if [ -f $$help ]; then \
50 echo $$help >> opers/index.tmp; \
51 fi \
52 done
efd07994
AJ
53 @echo 'Help topics available to opers:' > opers/index
54 @echo '' >> opers/index
55 @cat opers/index.tmp \
c52df125
AC
56 | sed -e 's|^opers/||' \
57 | sort -u \
58 | tr a-z A-Z \
59 | column -c 65 -s ' ' -x \
60 | expand \
61 >> opers/index
efd07994 62 @rm -f opers/index.tmp
c52df125 63
d0dc83b6 64install: index
c52df125
AC
65 -@if test -d $(DESTDIR)$(helpdir)-old; then \
66 rm -rf $(DESTDIR)$(helpdir)-old; \
67 fi
68 -@if test -d $(DESTDIR)$(helpdir); then \
69 echo "ircd: backing up old help files"; \
70 mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \
71 fi
72
73 @echo "ircd: setting up help directory structure"
74 @mkdir -p -m 755 $(DESTDIR)$(helpdir)
75 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/opers
76 @mkdir -p -m 755 $(DESTDIR)$(helpdir)/users
77
78 @for help in opers/*; do \
79 if [ -f $$help ]; then \
80 ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \
81 fi \
82 done
83 @for help in users/*; do \
84 if [ -f $$help ]; then \
85 $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \
86 fi \
87 done
88 @for link in $(SYMLINKS); do \
89 rm -f $(DESTDIR)$(uhelpdir)/$$link; \
90 ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \
91 done