aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-01 01:43:44 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-01 01:43:44 +0000
commit3683ec9972b4e9933004a05bca33072e4b96203b (patch)
treed1feed4fda756add554fb1b71a56dfa4a628dc76 /Makefile
parentdb06e34844264ac145bbbb68c4368e798d5581f5 (diff)
ensure that old modules warning does not occur when 'make install' is run directly after 'make clean'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5537 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fdbe5ad51..56a50679c 100755
--- a/Makefile
+++ b/Makefile
@@ -482,9 +482,6 @@ update:
NEWHEADERS=$(notdir $(wildcard include/asterisk/*.h))
OLDHEADERS=$(filter-out $(NEWHEADERS),$(notdir $(wildcard $(DESTDIR)$(ASTHEADERDIR)/*.h)))
-NEWMODS=$(notdir $(wildcard */*.so))
-OLDMODS=$(filter-out $(NEWMODS),$(notdir $(wildcard $(DESTDIR)$(MODULES_DIR)/*.so)))
-
bininstall: all
mkdir -p $(DESTDIR)$(MODULES_DIR)
mkdir -p $(DESTDIR)$(ASTSBINDIR)
@@ -547,6 +544,12 @@ bininstall: all
@echo " + **Note** This requires that you have +"
@echo " + doxygen installed on your local system +"
@echo " +-------------------------------------------+"
+ @$(MAKE) -s oldmodcheck
+
+NEWMODS=$(notdir $(wildcard */*.so))
+OLDMODS=$(filter-out $(NEWMODS),$(notdir $(wildcard $(DESTDIR)$(MODULES_DIR)/*.so)))
+
+oldmodcheck:
@if [ -n "$(OLDMODS)" ]; then \
echo " WARNING WARNING WARNING" ;\
echo "" ;\