[svn-commits] branch russell/menuselect_buildoptions r34522 - in /team/russell/menuselect_b...

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Jun 16 10:31:14 MST 2006


Author: russell
Date: Fri Jun 16 12:31:14 2006
New Revision: 34522

URL: http://svn.digium.com/view/asterisk?rev=34522&view=rev
Log:
- replicate cleantest functionality from main Makefile to each subdirectory
  as well
- update menuselect to be able to delete a specific file when options in a
  category change.  This addresses the following issues:
  - Instead of forcing a "make clean" of the entire tree when changing the
    build options for app_voicemail, only rebuild app_voicemail.
  - If you run "make", then run "make menuselect" and unselect modules that
    were previously selected and later run "make install", the modules that
    are now not selected will not be erroneously installed.

Added:
    team/russell/menuselect_buildoptions/apps/.cleancount   (with props)
    team/russell/menuselect_buildoptions/cdr/.cleancount   (with props)
    team/russell/menuselect_buildoptions/channels/.cleancount   (with props)
    team/russell/menuselect_buildoptions/codecs/.cleancount   (with props)
    team/russell/menuselect_buildoptions/formats/.cleancount   (with props)
    team/russell/menuselect_buildoptions/funcs/.cleancount   (with props)
    team/russell/menuselect_buildoptions/pbx/.cleancount   (with props)
    team/russell/menuselect_buildoptions/res/.cleancount   (with props)
Modified:
    team/russell/menuselect_buildoptions/apps/   (props changed)
    team/russell/menuselect_buildoptions/apps/Makefile
    team/russell/menuselect_buildoptions/apps/app_voicemail.c
    team/russell/menuselect_buildoptions/build_tools/cflags.xml
    team/russell/menuselect_buildoptions/build_tools/menuselect.c
    team/russell/menuselect_buildoptions/build_tools/menuselect.h
    team/russell/menuselect_buildoptions/build_tools/prep_moduledeps
    team/russell/menuselect_buildoptions/cdr/   (props changed)
    team/russell/menuselect_buildoptions/cdr/Makefile
    team/russell/menuselect_buildoptions/channels/   (props changed)
    team/russell/menuselect_buildoptions/channels/Makefile
    team/russell/menuselect_buildoptions/codecs/   (props changed)
    team/russell/menuselect_buildoptions/codecs/Makefile
    team/russell/menuselect_buildoptions/formats/   (props changed)
    team/russell/menuselect_buildoptions/formats/Makefile
    team/russell/menuselect_buildoptions/funcs/   (props changed)
    team/russell/menuselect_buildoptions/funcs/Makefile
    team/russell/menuselect_buildoptions/pbx/   (props changed)
    team/russell/menuselect_buildoptions/pbx/Makefile
    team/russell/menuselect_buildoptions/res/   (props changed)
    team/russell/menuselect_buildoptions/res/Makefile

Propchange: team/russell/menuselect_buildoptions/apps/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -1,3 +1,4 @@
 .depend
 *.a
 *.so
+.lastclean

Added: team/russell/menuselect_buildoptions/apps/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/apps/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/apps/.cleancount (added)
+++ team/russell/menuselect_buildoptions/apps/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/apps/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/apps/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/apps/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/apps/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/apps/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/apps/Makefile (original)
+++ team/russell/menuselect_buildoptions/apps/Makefile Fri Jun 16 12:31:14 2006
@@ -19,7 +19,7 @@
 
 app_voicemail.o: CFLAGS+=$(patsubst %,-D%,$(MENUSELECT_app_voicemail))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 clean-depend:
 	rm -f .depend
@@ -60,3 +60,8 @@
 
 env:
 	env
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Modified: team/russell/menuselect_buildoptions/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/apps/app_voicemail.c?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/apps/app_voicemail.c (original)
+++ team/russell/menuselect_buildoptions/apps/app_voicemail.c Fri Jun 16 12:31:14 2006
@@ -42,7 +42,7 @@
  */
 
 /*** MAKEOPTS
-<category name="MENUSELECT_app_voicemail" displayname="Voicemail Build Options" positive_output="yes" force_clean_on_change="yes">
+<category name="MENUSELECT_app_voicemail" displayname="Voicemail Build Options" positive_output="yes" remove_on_change="apps/app_voicemail.o">
 	<member name="IMAP_STORAGE" displayname="Storage of Voicemail using IMAP">
 		<depend>cc-client</depend>
 		<defaultenabled>no</defaultenabled>

Modified: team/russell/menuselect_buildoptions/build_tools/cflags.xml
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/build_tools/cflags.xml?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/build_tools/cflags.xml (original)
+++ team/russell/menuselect_buildoptions/build_tools/cflags.xml Fri Jun 16 12:31:14 2006
@@ -1,4 +1,4 @@
-	<category name="MENUSELECT_CFLAGS" displayname="Compiler Flags" positive_output="yes" force_clean_on_change="yes">
+	<category name="MENUSELECT_CFLAGS" displayname="Compiler Flags" positive_output="yes" remove_on_change=".lastclean">
 		<member name="DEBUG_CHANNEL_LOCKS" displayname="Debug Channel Locking">
 		</member>
 		<member name="DEBUG_SCHEDULER" displayname="Enable Scheduler Debugging Output">

Modified: team/russell/menuselect_buildoptions/build_tools/menuselect.c
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/build_tools/menuselect.c?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/build_tools/menuselect.c (original)
+++ team/russell/menuselect_buildoptions/build_tools/menuselect.c Fri Jun 16 12:31:14 2006
@@ -70,9 +70,6 @@
 /*! This is set when the --check-deps argument is provided. */
 static int check_deps = 0;
 
-/*! Force a clean of the source tree */
-static int force_clean = 0;
-
 /*! \brief return a pointer to the first non-whitespace character */
 static inline char *skip_blanks(char *str)
 {
@@ -175,8 +172,7 @@
 		cat->displayname = mxmlElementGetAttr(cur, "displayname");
 		if ((tmp = mxmlElementGetAttr(cur, "positive_output")))
 			cat->positive_output = !strcasecmp(tmp, "yes");
-		if ((tmp = mxmlElementGetAttr(cur, "force_clean_on_change")))
-			cat->force_clean_on_change = !strcasecmp(tmp, "yes");
+		cat->remove_on_change = mxmlElementGetAttr(cur, "remove_on_change");
 
 		if (add_category(cat)) {
 			free(cat);
@@ -374,8 +370,8 @@
 
 	if (mem && !(mem->depsfailed || mem->conflictsfailed)) {
 		mem->enabled = !mem->enabled;
-		if (cat->force_clean_on_change)
-			force_clean = 1;
+		if (cat->remove_on_change)
+			unlink(cat->remove_on_change);
 	}
 }
 
@@ -701,11 +697,5 @@
 	free_trees();
 	free_member_list();
 
-	/* In some cases, such as modifying the CFLAGS for the build,
-	 * a "make clean" needs to be forced.  Removing the .lastclean 
-	 * file does this. */
-	if (force_clean)
-		unlink(".lastclean");
-
 	exit(res);
 }

Modified: team/russell/menuselect_buildoptions/build_tools/menuselect.h
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/build_tools/menuselect.h?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/build_tools/menuselect.h (original)
+++ team/russell/menuselect_buildoptions/build_tools/menuselect.h Fri Jun 16 12:31:14 2006
@@ -71,10 +71,10 @@
 	const char *name;
 	/*! the name displayed in the menu */
 	const char *displayname;
-	/*! Display what is selected, as opposed to not selected */
+	/*! Delete this file if anything in this category changes */
+	const char *remove_on_change;
+	/*! Output what is selected, as opposed to not selected */
 	unsigned int positive_output:1;
-	/*! Force a clean of the source tree if anything in this category changes */
-	unsigned int force_clean_on_change:1;
 	/*! the list of possible values to be set in this variable */
 	AST_LIST_HEAD_NOLOCK(, member) members;
 	/*! for linking */

Modified: team/russell/menuselect_buildoptions/build_tools/prep_moduledeps
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/build_tools/prep_moduledeps?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/build_tools/prep_moduledeps (original)
+++ team/russell/menuselect_buildoptions/build_tools/prep_moduledeps Fri Jun 16 12:31:14 2006
@@ -32,7 +32,7 @@
 	catsuffix=${3}
 	displayname=${4}
 
-	echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\">"
+	echo -e "\t<category name=\"MENUSELECT_${catsuffix}\" displayname=\"${displayname}\" remove_on_change=\"${dir}/.lastclean\">"
 	for file in ${dir}/${prefix}*.c
 	do
 		fname=${file##${dir}/}

Propchange: team/russell/menuselect_buildoptions/cdr/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -1,3 +1,4 @@
 .depend
 *.a
 *.so
+.lastclean

Added: team/russell/menuselect_buildoptions/cdr/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/cdr/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/cdr/.cleancount (added)
+++ team/russell/menuselect_buildoptions/cdr/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/cdr/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/cdr/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/cdr/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/cdr/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/cdr/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/cdr/Makefile (original)
+++ team/russell/menuselect_buildoptions/cdr/Makefile Fri Jun 16 12:31:14 2006
@@ -39,7 +39,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 install: all
 	for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
@@ -94,3 +94,8 @@
 
 .depend:
 	../build_tools/mkdep $(CFLAGS) `ls *.c`
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Propchange: team/russell/menuselect_buildoptions/channels/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -4,3 +4,4 @@
 gentone
 busy.h
 ringtone.h
+.lastclean

Added: team/russell/menuselect_buildoptions/channels/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/channels/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/channels/.cleancount (added)
+++ team/russell/menuselect_buildoptions/channels/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/channels/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/channels/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/channels/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/channels/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/channels/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/channels/Makefile (original)
+++ team/russell/menuselect_buildoptions/channels/Makefile Fri Jun 16 12:31:14 2006
@@ -66,7 +66,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS) 
+all: cleantest $(MODS) 
 
 clean-depend:
 	rm -f .depend
@@ -173,3 +173,8 @@
 
 env:
 	env
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Propchange: team/russell/menuselect_buildoptions/codecs/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -1,3 +1,4 @@
 .depend
 *.a
 *.so
+.lastclean

Added: team/russell/menuselect_buildoptions/codecs/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/codecs/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/codecs/.cleancount (added)
+++ team/russell/menuselect_buildoptions/codecs/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/codecs/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/codecs/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/codecs/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/codecs/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/codecs/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/codecs/Makefile (original)
+++ team/russell/menuselect_buildoptions/codecs/Makefile Fri Jun 16 12:31:14 2006
@@ -25,7 +25,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 clean-depend:
 	rm -f .depend
@@ -104,3 +104,8 @@
 
 .depend:
 	../build_tools/mkdep $(CFLAGS) `ls *.c`
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Propchange: team/russell/menuselect_buildoptions/formats/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -1,3 +1,4 @@
 .depend
 *.a
 *.so
+.lastclean

Added: team/russell/menuselect_buildoptions/formats/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/formats/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/formats/.cleancount (added)
+++ team/russell/menuselect_buildoptions/formats/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/formats/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/formats/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/formats/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/formats/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/formats/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/formats/Makefile (original)
+++ team/russell/menuselect_buildoptions/formats/Makefile Fri Jun 16 12:31:14 2006
@@ -19,7 +19,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 clean-depend:
 	rm -f .depend
@@ -49,3 +49,8 @@
 
 .depend:
 	../build_tools/mkdep $(CFLAGS) `ls *.c`
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Propchange: team/russell/menuselect_buildoptions/funcs/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -2,3 +2,4 @@
 *.a
 *.so
 pbx_functions.h
+.lastclean

Added: team/russell/menuselect_buildoptions/funcs/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/funcs/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/funcs/.cleancount (added)
+++ team/russell/menuselect_buildoptions/funcs/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/funcs/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/funcs/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/funcs/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/funcs/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/funcs/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/funcs/Makefile (original)
+++ team/russell/menuselect_buildoptions/funcs/Makefile Fri Jun 16 12:31:14 2006
@@ -28,7 +28,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 clean-depend:
 	rm -f .depend
@@ -68,3 +68,8 @@
 
 env:
 	env
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Propchange: team/russell/menuselect_buildoptions/pbx/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -1,3 +1,4 @@
 .depend
 *.a
 *.so
+.lastclean

Added: team/russell/menuselect_buildoptions/pbx/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/pbx/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/pbx/.cleancount (added)
+++ team/russell/menuselect_buildoptions/pbx/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/pbx/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/pbx/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/pbx/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/pbx/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/pbx/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/pbx/Makefile (original)
+++ team/russell/menuselect_buildoptions/pbx/Makefile Fri Jun 16 12:31:14 2006
@@ -23,7 +23,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 clean-depend:
 	rm -f .depend
@@ -89,3 +89,8 @@
 
 .depend:
 	../build_tools/mkdep $(CFLAGS) `ls *.c`
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi

Propchange: team/russell/menuselect_buildoptions/res/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Fri Jun 16 12:31:14 2006
@@ -1,3 +1,4 @@
 .depend
 *.a
 *.so
+.lastclean

Added: team/russell/menuselect_buildoptions/res/.cleancount
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/res/.cleancount?rev=34522&view=auto
==============================================================================
--- team/russell/menuselect_buildoptions/res/.cleancount (added)
+++ team/russell/menuselect_buildoptions/res/.cleancount Fri Jun 16 12:31:14 2006
@@ -1,0 +1,1 @@
+1

Propchange: team/russell/menuselect_buildoptions/res/.cleancount
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/menuselect_buildoptions/res/.cleancount
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/menuselect_buildoptions/res/.cleancount
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/menuselect_buildoptions/res/Makefile
URL: http://svn.digium.com/view/asterisk/team/russell/menuselect_buildoptions/res/Makefile?rev=34522&r1=34521&r2=34522&view=diff
==============================================================================
--- team/russell/menuselect_buildoptions/res/Makefile (original)
+++ team/russell/menuselect_buildoptions/res/Makefile Fri Jun 16 12:31:14 2006
@@ -38,7 +38,7 @@
 
 MODS:=$(patsubst %,%.so,$(SELECTED_MODS))
 
-all: $(MODS)
+all: cleantest $(MODS)
 
 install: all
 	rm -f $(DESTDIR)$(ASTHEADERDIR)/parking.h
@@ -115,3 +115,8 @@
 
 env:
 	env
+
+cleantest:
+	@if cmp -s .cleancount .lastclean ; then echo ; else \
+		$(MAKE) clean; cp -f .cleancount .lastclean;\
+	fi



More information about the svn-commits mailing list