]>
Commit | Line | Data |
---|---|---|
c52df125 AC |
1 | # Generated automatically from Makefile.in by configure. |
2 | # $Id: Makefile.in 1044 2006-03-12 16:05:39Z jilles $ | |
3 | # makefile for include/ | |
4 | ||
5 | AUTOMAKE_OPTIONS = foreign | |
6 | ||
7 | prefix= @prefix@ | |
8 | exec_prefix= @execprefix@ | |
9 | helpdir= @helpdir@ | |
10 | uhelpdir= ${helpdir}/users | |
11 | ohelpdir= ${helpdir}/opers | |
12 | ||
13 | SYMLINKS= topic accept cmode admin names links away whowas \ | |
14 | version kick who invite quit join list nick oper part \ | |
15 | time credits motd userhost users whois ison lusers \ | |
16 | user help pass error challenge knock ping pong \ | |
17 | cprivmsg cnotice map trace chantrace extban monitor | |
18 | ||
19 | all: | |
20 | build: | |
21 | clean: | |
22 | depend: | |
23 | lint: | |
24 | ||
25 | index: | |
26 | @echo building index files | |
27 | rm -f users/index.tmp | |
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 | |
36 | echo 'Help topics available to users:' > users/index | |
37 | echo '' >> users/index | |
38 | cat users/index.tmp \ | |
39 | | sed -e 's|^users/||' \ | |
40 | | sort -u \ | |
41 | | tr a-z A-Z \ | |
42 | | column -c 65 -x \ | |
43 | | expand \ | |
44 | >> users/index | |
45 | rm -f users/index.tmp | |
46 | rm -f opers/index.tmp | |
47 | @for help in opers/*; do \ | |
48 | if [ -f $$help ]; then \ | |
49 | echo $$help >> opers/index.tmp; \ | |
50 | fi \ | |
51 | done | |
52 | echo 'Help topics available to opers:' > opers/index | |
53 | echo '' >> opers/index | |
54 | cat opers/index.tmp \ | |
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 | |
61 | rm -f opers/index.tmp | |
62 | ||
63 | install: | |
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 |