Install the schema examples for a set of backends.
[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         $(INSTALL) -d -m 755 $(R)$(datadir)/doc
21         $(INSTALL) -d -m 755 $(R)$(datadir)/doc/freeradius
22         for file in *[!~]; do \
23                 if [ -f $$file -a $$file != Makefile ]; then \
24                         $(INSTALL) -m 644 $$file $(R)$(datadir)/doc/freeradius; \
25                 fi; \
26         done
27         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
28
29 common: $(SUBDIRS)
30
31 $(SUBDIRS):
32         @echo "Making $(WHAT_TO_MAKE) in $@..."
33         $(MAKE) $(MFLAGS) -C $@ $(WHAT_TO_MAKE)
34
35 .PHONY: all clean install common $(SUBDIRS)