2 # Makefile Makefile for the cistron-radius package.
4 # NOTE: This top-level Makefile must not
5 # use GNU-make extensions. The lower ones can.
12 SUBDIRS = src raddb doc scripts
16 @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
19 @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
23 @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
26 @for dir in $(SUBDIRS); do \
27 echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
28 (cd $$dir ; $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
32 rm -f config.cache config.log config.status
33 -find . ! -name configure.in -name \*.in -print | \
35 while read file; do rm -f $$file; done
37 ######################################################################
39 # Automatic remaking rules suggested by info:autoconf#Automatic_Remaking
41 ######################################################################
42 configure: configure.in
45 # autoheader might not change config.h.in, so touch a stamp file
46 config.h.in: stamp-h.in
47 stamp-h.in: configure.in acconfig.h config.h.top config.h.bot
49 echo timestamp > stamp-h.in
52 stamp-h: config.h.in config.status
55 config.status: configure
56 ./config.status --recheck