]> jfr.im git - solanum.git/blob - help/Makefile.am
Add a comment explaining match_arrange_stars
[solanum.git] / help / Makefile.am
1 # Generated automatically from Makefile.in by configure.
2 # makefile for help/
3
4 AUTOMAKE_OPTIONS = foreign
5
6 prefix= @prefix@
7 exec_prefix= @execprefix@
8 helpdir= @helpdir@
9 uhelpdir= ${helpdir}/users
10 ohelpdir= ${helpdir}/opers
11
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
17
18 all: index
19 build:
20 depend:
21 lint:
22
23 clean:
24 rm -f users/index users/index.tmp opers/index opers/index.tmp
25
26 index:
27 @echo building index files
28 @rm -f users/index.tmp
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
37 @echo 'Help topics available to users:' > users/index
38 @echo '' >> users/index
39 @cat users/index.tmp \
40 | sed -e 's|^users/||' \
41 | sort -u \
42 | tr a-z A-Z \
43 | column -c 65 -x \
44 | expand \
45 >> users/index
46 @rm -f users/index.tmp
47 @rm -f opers/index.tmp
48 @for help in opers/*; do \
49 if [ -f $$help ]; then \
50 echo $$help >> opers/index.tmp; \
51 fi \
52 done
53 @echo 'Help topics available to opers:' > opers/index
54 @echo '' >> opers/index
55 @cat opers/index.tmp \
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
62 @rm -f opers/index.tmp
63
64 install: index
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