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