forked from ValveSoftware/steam-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (34 loc) · 1.13 KB
/
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
44
45
46
47
48
# Makefile to automate the build process for the Steam runtime
PACKAGES := $(shell sed -e '/^\#/d' -e 's/\s.*//' <packages.txt)
all: clean-log packages
packages:
if [ "$(ARCH)" = "" ]; then \
make $@ ARCH=i386; \
make $@ ARCH=amd64; \
else \
./buildroot.sh --arch="$(ARCH)" ./build-runtime.sh --runtime="$(RUNTIME_PATH)" --debug="$(DEBUG)" --devmode="$(DEVELOPER_MODE)" | tee -a build.log; \
fi
$(PACKAGES):
if [ "$(ARCH)" = "" ]; then \
make $@ ARCH=i386; \
make $@ ARCH=amd64; \
else \
./buildroot.sh --arch="$(ARCH)" ./build-runtime.sh --runtime="$(RUNTIME_PATH)" --debug="$(DEBUG)" --devmode="$(DEVELOPER_MODE)" $@ | tee -a build.log; \
fi
update:
./buildroot.sh --arch=i386 --update
./buildroot.sh --arch=amd64 --update
./buildroot.sh ./update-packages.sh
clean-log:
@rm -f build.log
clean-runtime:
@./clean-runtime.sh
clean-buildroot:
@./buildroot.sh --archive --clean
clean: clean-log clean-runtime clean-buildroot
archives:
./make-archives.sh
distclean: clean
@rm -rf packages
@rm -rf buildroot/pbuilder
.PHONY: all packages $(PACKAGES) update clean-log clean-runtime clean-buildroot clean archives distclean