Latest set of updates
[freeradius.git] / doc / Makefile
1 #
2 # Makefile
3 #
4 # Version:      $Id$
5 #
6
7 include ../Make.inc
8
9 SUBDIRS         = examples rfc
10 WHAT_TO_MAKE    = all
11
12 all:
13         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
14
15 clean:
16         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
17         @rm -f *~
18
19 install:
20         @if [ "$(docdir)" = no ]; then                                  \
21                 echo 'Documentation files will NOT be installed.';      \
22         else                                                            \
23                 $(INSTALL) -d -m 755 $(R)$(docdir);                     \
24                 for file in *[!~]; do                                   \
25                         if [ -f $$file -a $$file != Makefile ]; then    \
26                                 $(INSTALL) -m 644 $$file $(R)$(docdir); \
27                         fi;                                             \
28                 done;                                                   \
29                 $(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common;               \
30         fi
31
32 common: $(SUBDIRS)
33
34 $(SUBDIRS):
35         @echo "Making $(WHAT_TO_MAKE) in $@..."
36         @$(MAKE) $(MFLAGS) -C $@ $(WHAT_TO_MAKE)
37
38 .PHONY: all clean install common $(SUBDIRS)