[go: up one dir, main page]

File: Makefile

package info (click to toggle)
kamailio 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,332 kB
  • sloc: ansic: 859,131; xml: 203,387; sh: 9,555; makefile: 9,297; sql: 8,571; yacc: 4,121; python: 3,086; perl: 2,955; java: 449; cpp: 289; javascript: 270; php: 258; ruby: 248; awk: 27
file content (56 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Root Makefile for Kamailio project
# - forward all commands to the Makefile in the src/ subfolder
#


# path to the source code folder
KSR_DIR ?= src/

# default target for makefile
.DEFAULT_GOAL := default

ifneq ($(wildcard modules),)
$(warning "old Kamailio modules directory found, you should clean that")
endif

# strip the src/ from the path to modules
SMODPARAM=
ifneq ($(modules),)
ifneq (,$(findstring src/,$(modules)))
smodules=$(subst src/,,$(modules))
SMODPARAM=modules=$(smodules)
endif
endif

MKTAGS?=ctags
EMACS_COMPAT=
ifneq ($(INSIDE_EMACS),)
EMACS_COMPAT=-e
endif

# forward all named targets
%:
	$(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)

# forward the default target
default:
	$(MAKE) -C $(KSR_DIR)

# forward the install target
.PHONY: install
install:
	$(MAKE) -C $(KSR_DIR) $@ $(SMODPARAM)

.PHONY: TAGS
.PHONY: tags
TAGS tags:
	$(MKTAGS) $(EMACS_COMPAT) --exclude="misc/*" --exclude="test/*" -R .

# clean everything generated - shortcut on maintainer-clean
.PHONY: pure
clean pure distclean:
	@rm -f .*.swp tags TAGS
	$(MAKE) -C $(KSR_DIR) $@

#