forked from crossbario/autobahn-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (31 loc) · 850 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
39
40
41
42
43
SUBDIRS = x86_64 armhf aarch64
subdirs: $(SUBDIRS)
BUILDDIRS = $(SUBDIRS:%=build-%)
VERSIONDIRS = $(SUBDIRS:%=version-%)
TESTDIRS = $(SUBDIRS:%=test-%)
PUBLISHDIRS = $(SUBDIRS:%=publish-%)
build: $(BUILDDIRS)
version: $(VERSIONDIRS)
test: $(TESTDIRS)
publish: $(PUBLISHDIRS)
.PHONY: subdirs $(BUILDDIRS) $(VERSIONDIRS) $(TESTDIRS) $(PUBLISHDIRS)
.PHONY: build version test publish
$(BUILDDIRS):
$(MAKE) -C $(@:build-%=%) build
$(VERSIONDIRS):
$(MAKE) -C $(@:version-%=%) version
$(TESTDIRS):
$(MAKE) -C $(@:test-%=%) test
$(PUBLISHDIRS):
$(MAKE) -C $(@:publish-%=%) publish
list:
docker images crossbario/autobahn-python*:*
clean:
-./removeall.sh
#
# Install Qemu (this is needed for cross-building armhf/aarch64 on amd64)
#
qemu_deps:
mkdir -p ./.qemu
cp /usr/bin/qemu-aarch64-static ./.qemu
cp /usr/bin/qemu-arm-static ./.qemu