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