File: Makefile

package info (click to toggle)
kore 4.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,912 kB
  • sloc: ansic: 29,227; makefile: 344; sh: 278; python: 149; cpp: 34
file content (47 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
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
#
# Build all relevant examples.
# This only exists to quickly test building all examples.
#
# Kore must be built with PGSQL=1 TASKS=1 PYTHON=1 to get all
# of the below examples to build correctly.
#
# Don't run this directly, run it from the top level as
# $ make releng-build-examples
#

CURDIR=		$(shell pwd)
KODEV=		/tmp/kore_releng/bin/kodev

EXAMPLES=	async-curl \
		cookies \
		cpp \
		generic \
		headers \
		integers \
		memtag \
		messaging \
		nohttp \
		parameters \
		pgsql \
		pgsql-sync \
		pipe_task \
		sse \
		tasks \
		tls-proxy \
		upload \
		video_stream \
		websocket \

all:
	@for example in $(EXAMPLES); do \
		cd $$example; \
		$(KODEV) clean && $(KODEV) build || exit 1; \
		cd $(CURDIR); \
	done

clean:
	@for example in $(EXAMPLES); do \
		cd $$example; \
		$(KODEV) clean; \
		cd $(CURDIR); \
	done