summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-04-01 00:45:04 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-04-01 00:45:04 +0000
commitc402e3f8f9b9809adb9a71d11f7ca482d5da7ea1 (patch)
tree2a8bcfae59a031d2d06e142aa8d830492b3dfa2a /Makefile
parentd7bbb73cf3a143ac812f5e219814071c0a64185b (diff)
Do clean some modules when there's no kernel tree available.
(and block the backport of r4082). Merged revisions 4118 via svnmerge from http://svn.digium.com/svn/zaptel/branches/1.2 git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4119 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8201092..ed66b39 100644
--- a/Makefile
+++ b/Makefile
@@ -585,6 +585,8 @@ clean:
rm -f $(LTZ_SO) $(LTZ_A) *.lo
ifeq (yes,$(HAS_KSRC))
$(KMAKE) clean
+else
+ rm -f kernel/*.o kernel/*.ko kernel/*/*.o kernel/*/*.ko
endif
@for dir in $(SUBDIRS_UTILS_ALL); do \
$(MAKE) -C $$dir clean; \