diff options
author | Mark Spencer <markster@digium.com> | 2005-01-17 04:48:51 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-17 04:48:51 +0000 |
commit | 441c545ccc7d81e9d5162e7325f017b1fe5efe97 (patch) | |
tree | e33f7e8337de1f1904b4eba72784ebda4a8c084c /Makefile | |
parent | b7178fdce97b377b1aab1b64d45d81645a8a8938 (diff) |
Allow me to force a "make clean ; make install" on a cvs update (bug #3358)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 + |