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
14 # strip the src/ from the path to modules
17 ifneq (,$(findstring src/,$(modules)))
18 smodules=$(subst src/,,$(modules))
19 SMODPARAM=modules=$(smodules)
25 # forward all named targets
27 $(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
29 # forward the default target
33 # forward the install target
36 $(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)
41 $(MKTAGS) --exclude="misc/*" --exclude="test/*" -R .
43 # clean everything generated - shortcut on maintainer-clean
46 @rm -f .*.swp tags TAGS
47 $(MAKE) -C $(KSR_DIR) $@