forked from MurdockR/steam-root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 735 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
# Makefile to build the steam-root chroot environments
#
# In order to build the amd64 environment you must be running amd64
VERSION := 1.0.1
ifeq ($(shell dpkg --print-architecture), amd64)
ARCHES := i386 amd64
else
ARCHES := i386
endif
all:
@if [ "$(ARCH)" ]; then \
./create.sh $(ARCH) $(VERSION); \
else \
for arch in $(ARCHES); do make ARCH=$$arch; done; \
fi
create update archive shell:
@if [ "$(ARCH)" ]; then \
./create.sh $(ARCH) $(VERSION) --$@; \
else \
for arch in $(ARCHES); do make $@ ARCH=$$arch; done; \
fi
clean:
@if [ "$(ARCH)" ]; then \
rm -rf $(ARCH)/steam-root; \
else \
for arch in $(ARCHES); do make clean ARCH=$$arch; done; \
fi
distclean:
rm -rf $(ARCHES)
rm -vf steam-root*.tgz