aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-17 04:48:51 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-17 04:48:51 +0000
commit8f16ca10695470c3283716b19816baf7d9f21746 (patch)
treee33f7e8337de1f1904b4eba72784ebda4a8c084c /Makefile
parent6b5d0ba225c8e412f4f83d2bf26c28a21613e17a (diff)
Allow me to force a "make clean ; make install" on a cvs update (bug #3358)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4822 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b336dce57..9d9342dee 100755
--- a/Makefile
+++ b/Makefile
@@ -255,7 +255,9 @@ _all: all
@echo " + $(MAKE) install +"
@echo " +-------------------------------------------+"
-all: depend asterisk subdirs
+all: cleantest depend asterisk subdirs
+
+noclean: depend asterisk subdirs
editline/config.h:
cd editline && unset CFLAGS LIBS && ./configure ; \
@@ -330,6 +332,7 @@ clean:
rm -f *.o *.so asterisk .depend
rm -f build.h
rm -f ast_expr.c
+ rm -f .version
@if [ -f editline/Makefile ]; then $(MAKE) -C editline distclean ; fi
@if [ -d mpg123-0.59r ]; then make -C mpg123-0.59r clean; fi
$(MAKE) -C db1-ast clean
@@ -580,3 +583,14 @@ FORCE:
env:
env
+
+# If the cleancount has been changed, force a make clean.
+# .cleancount is the global clean count, and .lastclean is the
+# last clean count # we had
+# We can avoid this by making noclean
+
+cleantest:
+ if ! cmp -s .cleancount .lastclean ; then \
+ make clean; cp -f .cleancount .lastclean;\
+ fi
+