[asterisk-commits] kpfleming: trunk r42505 - in /trunk: ./ agi/
utils/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Sep 8 20:27:22 MST 2006
Author: kpfleming
Date: Fri Sep 8 22:27:21 2006
New Revision: 42505
URL: http://svn.digium.com/view/asterisk?rev=42505&view=rev
Log:
more makefile tweaks to keep targets from being run when they don't need to be
Modified:
trunk/Makefile
trunk/Makefile.moddir_rules
trunk/Makefile.rules
trunk/agi/Makefile
trunk/utils/Makefile
Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=42505&r1=42504&r2=42505&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Fri Sep 8 22:27:21 2006
@@ -22,7 +22,12 @@
.EXPORT_ALL_VARIABLES:
-include makeopts
+# even though we could use '-include makeopts' here, use a wildcard
+# lookup anyway, so that make won't try to build makeopts if it doesn't
+# exist (other rules will force it to be built if needed)
+ifneq ($(wildcard makeopts),)
+ include makeopts
+endif
#Uncomment this to see all build commands instead of 'quiet' output
#NOISY_BUILD=yes
@@ -235,9 +240,8 @@
all: cleantest $(SUBDIRS)
@echo " +--------- Asterisk Build Complete ---------+"
- @echo " + Asterisk has successfully been built, but +"
- @echo " + cannot be run before being installed by +"
- @echo " + running: +"
+ @echo " + Asterisk has successfully been built, and +"
+ @echo " + can be installed by running: +"
@echo " + +"
@echo " + make install +"
@echo " +-------------------------------------------+"
@@ -316,6 +320,7 @@
rm -f include/asterisk/version.h
rm -f .depend
@$(MAKE) -C menuselect clean
+ cp -f .cleancount .lastclean
dist-clean: distclean
@@ -604,8 +609,7 @@
cleantest:
@if ! cmp -s .cleancount .lastclean ; then \
- $(MAKE) clean; cp -f .cleancount .lastclean;\
- $(MAKE) defaults.h;\
+ $(MAKE) clean;\
fi
$(SUBDIRS_UNINSTALL):
Modified: trunk/Makefile.moddir_rules
URL: http://svn.digium.com/view/asterisk/trunk/Makefile.moddir_rules?rev=42505&r1=42504&r2=42505&view=diff
==============================================================================
--- trunk/Makefile.moddir_rules (original)
+++ trunk/Makefile.moddir_rules Fri Sep 8 22:27:21 2006
@@ -95,7 +95,9 @@
uninstall::
--include .depend
+ifneq ($(wildcard .depend),)
+ include .depend
+endif
depend: .depend
Modified: trunk/Makefile.rules
URL: http://svn.digium.com/view/asterisk/trunk/Makefile.rules?rev=42505&r1=42504&r2=42505&view=diff
==============================================================================
--- trunk/Makefile.rules (original)
+++ trunk/Makefile.rules Fri Sep 8 22:27:21 2006
@@ -15,7 +15,7 @@
# Prefixing one or the other with @\# or @ or nothing makes the desired
# behaviour. ECHO_PREFIX prefixes the comment, CMD_PREFIX prefixes the command.
-include $(ASTTOPDIR)/makeopts
+-include $(ASTTOPDIR)/makeopts
ifeq ($(NOISY_BUILD),)
ECHO_PREFIX=@
Modified: trunk/agi/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/agi/Makefile?rev=42505&r1=42504&r2=42505&view=diff
==============================================================================
--- trunk/agi/Makefile (original)
+++ trunk/agi/Makefile Fri Sep 8 22:27:21 2006
@@ -40,7 +40,9 @@
clean: clean-depend
rm -f *.so *.o look eagi-test eagi-sphinx-test
--include .depend
+ifneq ($(wildcard .depend),)
+ include .depend
+endif
depend: .depend
Modified: trunk/utils/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/utils/Makefile?rev=42505&r1=42504&r2=42505&view=diff
==============================================================================
--- trunk/utils/Makefile (original)
+++ trunk/utils/Makefile Fri Sep 8 22:27:21 2006
@@ -100,7 +100,9 @@
muted: muted.o
muted: LIBS+=$(AUDIO_LIBS)
--include .depend
+ifneq ($(wildcard .depend),)
+ include .depend
+endif
depend: .depend
More information about the asterisk-commits
mailing list