Skip to content
Snippets Groups Projects
Commit 441c545c authored by Mark Spencer's avatar Mark Spencer
Browse files

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
parent b7178fdc
No related branches found
No related tags found
No related merge requests found
1
...@@ -7,3 +7,5 @@ ast_expr.c ...@@ -7,3 +7,5 @@ ast_expr.c
mpg123-0.59r mpg123-0.59r
mpg123-0.59r.tar.gz mpg123-0.59r.tar.gz
update.out update.out
.lastclean
.cleancount
...@@ -255,7 +255,9 @@ _all: all ...@@ -255,7 +255,9 @@ _all: all
@echo " + $(MAKE) install +" @echo " + $(MAKE) install +"
@echo " +-------------------------------------------+" @echo " +-------------------------------------------+"
all: depend asterisk subdirs all: cleantest depend asterisk subdirs
noclean: depend asterisk subdirs
editline/config.h: editline/config.h:
cd editline && unset CFLAGS LIBS && ./configure ; \ cd editline && unset CFLAGS LIBS && ./configure ; \
...@@ -330,6 +332,7 @@ clean: ...@@ -330,6 +332,7 @@ clean:
rm -f *.o *.so asterisk .depend rm -f *.o *.so asterisk .depend
rm -f build.h rm -f build.h
rm -f ast_expr.c rm -f ast_expr.c
rm -f .version
@if [ -f editline/Makefile ]; then $(MAKE) -C editline distclean ; fi @if [ -f editline/Makefile ]; then $(MAKE) -C editline distclean ; fi
@if [ -d mpg123-0.59r ]; then make -C mpg123-0.59r clean; fi @if [ -d mpg123-0.59r ]; then make -C mpg123-0.59r clean; fi
$(MAKE) -C db1-ast clean $(MAKE) -C db1-ast clean
...@@ -580,3 +583,14 @@ FORCE: ...@@ -580,3 +583,14 @@ FORCE:
env: env:
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
...@@ -71,6 +71,12 @@ So let's proceed: ...@@ -71,6 +71,12 @@ So let's proceed:
1) Run "make" 1) Run "make"
2) Run "make install" 2) Run "make install"
Each time you update or checkout from CVS, you are strongly encouraged
to ensure all previous object files are removed to avoid internal
inconsistency in Asterisk. Normally, this is automatically done with
the presence of the file .cleancount, which increments each time a 'make clean'
is required, and the file .lastclean, which contains the last .cleancount used.
If this is your first time working with Asterisk, you may wish to install If this is your first time working with Asterisk, you may wish to install
the sample PBX, with demonstration extensions, etc. If so, run: the sample PBX, with demonstration extensions, etc. If so, run:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment