blob: 6a10830248b42567b94f7e7080c8255c644eddc4 (
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
|
SCRIPTS = $(CURDIR)/scripts
COMMANDS = $(CURDIR)/commands
LOG = $(SCRIPTS)/log-command
all: build
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:
$(COMMANDS)/check-system $(ARGS)
build: check-system
$(COMMANDS)/build
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 \
$(COMMANDS)/shell
bug-report:
@$(SCRIPTS)/bug-report
clean:
$(COMMANDS)/clean
rm -f logs/*.log logs/all-logs.tar.bz2
rm -f scripts/list-outputs
rm -f scripts/find-free-display
|