09302a25cc6c6dcc99dc846e74c424dc782b6218
[freeradius.git] / Makefile.in
1 #
2 # Makefile      Makefile for the cistron-radius package.
3 #
4 # Version:      @(#)Makefile  1.00 01-Jul-1999  miquels@cistron.nl
5 #
6
7 @INCLUDE@ @IQUOTE@Make.inc@IQUOTE@
8
9 SUBDIRS         = src raddb doc scripts
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 *~ stamp*
18
19 install:
20         @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
21
22 common:
23         @for dir in $(SUBDIRS); do \
24                 echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
25                 (cd $$dir ; $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
26         done
27
28 distclean: clean
29         rm -f config.cache config.log config.status
30         -find . ! -name configure.in -name \*.in -print | \
31                 sed 's/\.in$$//' | \
32                 while read file; do rm -f $$file; done
33
34 ######################################################################
35 #
36 #  Automatic remaking rules suggested by info:autoconf#Automatic_Remaking
37 #
38 ######################################################################
39 configure: configure.in
40         autoconf
41
42 # autoheader might not change config.h.in, so touch a stamp file
43 config.h.in: stamp-h.in
44 stamp-h.in: configure.in acconfig.h config.h.top config.h.bot
45         autoheader
46         echo timestamp > stamp-h.in
47
48 config.h: stamp-h
49 stamp-h: config.h.in config.status
50         ./config.status
51
52 config.status: configure
53         ./config.status --recheck