kore/examples/Makefile

48 lines
829 B
Makefile
Raw Normal View History

2018-11-29 21:04:14 +01:00
#
# Build all relevant examples.
# This only exists to quickly test building all examples.
#
2018-11-29 21:04:49 +01:00
# Kore must be built with PGSQL=1 TASKS=1 PYTHON=1 to get all
# of the below examples to build correctly.
#
2018-11-29 21:13:43 +01:00
# Don't run this directly, run it from the top level as
# $ make releng-build-examples
#
2018-11-29 21:04:14 +01:00
CURDIR= $(shell pwd)
2018-11-29 21:13:43 +01:00
KODEV= /tmp/kore_releng/bin/kodev
2018-11-29 21:04:14 +01:00
2019-04-30 20:38:12 +02:00
EXAMPLES= async-curl \
cookies \
2018-11-29 21:04:14 +01:00
cpp \
generic \
headers \
integers \
memtag \
messaging \
nohttp \
parameters \
pgsql \
pgsql-sync \
pipe_task \
sse \
tasks \
tls-proxy \
upload \
video_stream \
websocket \
2018-11-29 21:13:43 +01:00
all:
2018-11-29 21:04:14 +01:00
@for example in $(EXAMPLES); do \
cd $$example; \
2018-11-29 21:13:43 +01:00
$(KODEV) clean && $(KODEV) build || exit 1; \
2018-11-29 21:04:14 +01:00
cd $(CURDIR); \
done
2018-11-29 21:13:43 +01:00
clean:
@for example in $(EXAMPLES); do \
cd $$example; \
$(KODEV) clean; \
cd $(CURDIR); \
done