2 # Root Makefile for Kamailio project
3 # - forward all commands to the Makefile in the src/ subfolder
7 # path to the source code folder
10 # default target for makefile
11 .DEFAULT_GOAL := default
13 ifneq ($(wildcard modules),)
14 $(warning "old Kamailio modules directory found, you should clean that")
17 # strip the src/ from the path to modules
20 ifneq (,$(findstring src/,$(modules)))
21 smodules=$(subst src/,,$(modules))
22 SMODPARAM=modules=$(smodules)
28 # forward all named targets
30 $(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
32 # forward the default target
36 # forward the install target
39 $(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
44 $(MKTAGS) --exclude="misc/*" --exclude="test/*" -R .
46 # clean everything generated - shortcut on maintainer-clean
49 @rm -f .*.swp tags TAGS
50 $(MAKE) -C $(KSR_DIR) $@