]>
Commit | Line | Data |
---|---|---|
c52df125 | 1 | # Generated automatically from Makefile.in by configure. |
d0dc83b6 | 2 | # makefile for help/ |
c52df125 | 3 | |
d0dc83b6 | 4 | AUTOMAKE_OPTIONS = foreign |
c52df125 AC |
5 | |
6 | prefix= @prefix@ | |
7 | exec_prefix= @execprefix@ | |
8 | helpdir= @helpdir@ | |
9 | uhelpdir= ${helpdir}/users | |
10 | ohelpdir= ${helpdir}/opers | |
11 | ||
3eab43b6 EK |
12 | CLEANFILES= users/index users/index.tmp opers/index opers/index.tmp |
13 | ||
c52df125 AC |
14 | SYMLINKS= topic accept cmode admin names links away whowas \ |
15 | version kick who invite quit join list nick oper part \ | |
16 | time credits motd userhost users whois ison lusers \ | |
17 | user help pass error challenge knock ping pong \ | |
27aca3c3 | 18 | map trace chantrace extban monitor |
c52df125 | 19 | |
efd07994 | 20 | all: index |
c52df125 | 21 | build: |
c52df125 AC |
22 | depend: |
23 | lint: | |
24 | ||
25 | index: | |
26 | @echo building index files | |
efd07994 | 27 | @rm -f users/index.tmp |
c52df125 AC |
28 | @for help in users/*; do \ |
29 | if [ -f $$help ]; then \ | |
30 | echo $$help >> users/index.tmp; \ | |
31 | fi \ | |
32 | done | |
33 | @for help in $(SYMLINKS); do \ | |
34 | echo $$help >> users/index.tmp; \ | |
35 | done | |
efd07994 AJ |
36 | @echo 'Help topics available to users:' > users/index |
37 | @echo '' >> users/index | |
38 | @cat users/index.tmp \ | |
c52df125 AC |
39 | | sed -e 's|^users/||' \ |
40 | | sort -u \ | |
41 | | tr a-z A-Z \ | |
42 | | column -c 65 -x \ | |
43 | | expand \ | |
44 | >> users/index | |
efd07994 AJ |
45 | @rm -f users/index.tmp |
46 | @rm -f opers/index.tmp | |
c52df125 AC |
47 | @for help in opers/*; do \ |
48 | if [ -f $$help ]; then \ | |
49 | echo $$help >> opers/index.tmp; \ | |
50 | fi \ | |
51 | done | |
efd07994 AJ |
52 | @echo 'Help topics available to opers:' > opers/index |
53 | @echo '' >> opers/index | |
54 | @cat opers/index.tmp \ | |
c52df125 AC |
55 | | sed -e 's|^opers/||' \ |
56 | | sort -u \ | |
57 | | tr a-z A-Z \ | |
58 | | column -c 65 -s ' ' -x \ | |
59 | | expand \ | |
60 | >> opers/index | |
efd07994 | 61 | @rm -f opers/index.tmp |
c52df125 | 62 | |
d0dc83b6 | 63 | install: index |
c52df125 AC |
64 | -@if test -d $(DESTDIR)$(helpdir)-old; then \ |
65 | rm -rf $(DESTDIR)$(helpdir)-old; \ | |
66 | fi | |
67 | -@if test -d $(DESTDIR)$(helpdir); then \ | |
68 | echo "ircd: backing up old help files"; \ | |
69 | mv $(DESTDIR)$(helpdir) $(DESTDIR)$(helpdir)-old; \ | |
70 | fi | |
71 | ||
72 | @echo "ircd: setting up help directory structure" | |
73 | @mkdir -p -m 755 $(DESTDIR)$(helpdir) | |
74 | @mkdir -p -m 755 $(DESTDIR)$(helpdir)/opers | |
75 | @mkdir -p -m 755 $(DESTDIR)$(helpdir)/users | |
76 | ||
77 | @for help in opers/*; do \ | |
78 | if [ -f $$help ]; then \ | |
79 | ${INSTALL_DATA} $$help $(DESTDIR)$(ohelpdir); \ | |
80 | fi \ | |
81 | done | |
82 | @for help in users/*; do \ | |
83 | if [ -f $$help ]; then \ | |
84 | $(INSTALL_DATA) $$help $(DESTDIR)$(uhelpdir); \ | |
85 | fi \ | |
86 | done | |
87 | @for link in $(SYMLINKS); do \ | |
88 | rm -f $(DESTDIR)$(uhelpdir)/$$link; \ | |
89 | ln -s $(ohelpdir)/$$link $(DESTDIR)$(uhelpdir); \ | |
90 | done |