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