-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 933 Bytes
/
Makefile
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
###########################################################
build:
docker-compose build
push:
docker push shri314/clang:latest
docker push shri314/clang-libcpp:latest
docker push shri314/clang-libcpp-boost:latest
###########################################################
DOCKER_ENV_CMD = docker exec -it clang-libcpp-boost-env
up:
docker-compose up -d
@if [ "$$CIRCLECI" ]; \
then \
echo "Workaround for CIRCLE CI as docker-compose mounts are unavailable"; \
docker cp ./sample.cpp clang-libcpp-boost-env:/src; \
fi
down:
docker-compose down
sample: up sample.o
$(DOCKER_ENV_CMD) clang++ -std=c++2a -fcoroutines-ts -stdlib=libc++ -lc++abi -o sample sample.o
sample.o: up sample.cpp
$(DOCKER_ENV_CMD) clang++ -std=c++2a -fcoroutines-ts -stdlib=libc++ -c sample.cpp
sample-run: sample
$(DOCKER_ENV_CMD) ./sample
clean:
rm -f sample sample.o
###########################################################