each subdirectory.
- the shell code in the for loop doesn't have a manually catch errors from
make on a subdirectory
- you can now run something like "make apps" or "make channels" from the root
source directory
- This should allow for better support for parallel instances of make (the -j
option) since make can work on each subdirectory target in parallel
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35436
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
@echo " + make install +"
@echo " +-------------------------------------------+"
-all: cleantest config.status menuselect.makeopts depend asterisk subdirs
+all: cleantest config.status menuselect.makeopts depend asterisk $(SUBDIRS)
config.status: configure
@CFLAGS="" ./configure
muted: muted.o
$(CC) $(AUDIO_LIBS) -o muted muted.o
-subdirs:
- @for x in $(MOD_SUBDIRS); do CFLAGS="$(MOD_SUBDIR_CFLAGS)$(ASTCFLAGS)" $(MAKE) -C $$x || exit 1 ; done
- @CFLAGS="$(OTHER_SUBDIR_CFLAGS)$(ASTCFLAGS)" $(MAKE) -C utils
- @CFLAGS="$(OTHER_SUBDIR_CFLAGS)$(ASTCFLAGS)" $(MAKE) -C agi
+$(MOD_SUBDIRS): FORCE
+ @CFLAGS="$(MOD_SUBDIR_CFLAGS)$(ASTCFLAGS)" $(MAKE) -C $@
+
+$(OTHER_SUBDIRS): FORCE
+ @CFLAGS="$(OTHER_SUBDIR_CFLAGS)$(ASTCFLAGS)" $(MAKE) -C $@
clean-depend:
@for x in $(SUBDIRS); do $(MAKE) -C $$x clean-depend || exit 1 ; done