]>
Commit | Line | Data |
---|---|---|
1 | # Generated automatically from Makefile.in by configure. | |
2 | # makefile for include/ | |
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: | |
19 | build: | |
20 | clean: | |
21 | depend: | |
22 | lint: | |
23 | ||
24 | index: | |
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 | ||
62 | install: | |
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 |