blob: 0049f38852abca99ee59b1415458b7c188a20092 (
plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
TIMESTAMP := $(shell date +%Y%m%d-%H%M%S)
LOGFILE = $(CURDIR)/logs/build-$(TIMESTAMP).log
SCRIPTS = $(CURDIR)/scripts
DNBUILD = $(SCRIPTS)/dn-build
LOG = $(SCRIPTS)/log-command
# The buildbot shell does not handle script properly. It's unnecessary
# anyway because we can't use interactive scripts there.
ifdef SUGAR_BUILDBOT
TYPESCRIPT = $(LOG)
else
TYPESCRIPT = script -t/tmp/sugar-build-scripttimingfd -ae -c
endif
all: build install-activities
XRANDR_LIBS = $(shell pkg-config --libs xrandr x11)
X11_LIBS = $(shell pkg-config --libs x11)
scripts/list-outputs: scripts/list-outputs.c
gcc -o scripts/list-outputs scripts/list-outputs.c $(XRANDR_LIBS)
scripts/find-free-display: scripts/find-free-display.c
gcc -o scripts/find-free-display scripts/find-free-display.c $(X11_LIBS)
x11-utils: scripts/list-outputs scripts/find-free-display
check-system:
$(TYPESCRIPT) $(SCRIPTS)/check-system $(LOGFILE)
build-glucose: check-system
$(LOG) "$(DNBUILD) build glucose" $(LOGFILE)
build-activities:
$(LOG) "$(DNBUILD) build activities" $(LOGFILE)
build: build-glucose build-activities
run: x11-utils
$(SCRIPTS)/shell/start-sugar
test: x11-utils
$(LOG) "$(SCRIPTS)/run-ui-tests" $(LOGFILE)
shell: x11-utils
@PS1="[sugar-build \W]$$ " \
PATH=$(PATH):$(SCRIPTS)/shell \
SUGAR_BUILD_SHELL=yes \
$(DNBUILD) shell
bug-report:
@$(SCRIPTS)/bug-report
clean:
rm -rf build install
rm -rf source/gstreamer
rm -rf source/gst-plugins-base
rm -rf source/gst-plugins-good
rm -rf source/gst-plugins-espeak
rm -rf source/gst-plugins-bad
rm -rf source/gst-plugins-ugly
rm -rf source/gst-ffmpeg
rm -rf source/sugar-fructose
rm -f logs/*.log logs/all-logs.tar.bz2
rm -f scripts/list-outputs
rm -f scripts/find-free-display
|