@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 ; \
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
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
+
1) Run "make"
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
the sample PBX, with demonstration extensions, etc. If so, run: