blob: 7b796d5cc686c25557def9fc2a98de3d2e200160 (
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
|
COMMANDS = $(CURDIR)/commands
all: build
XRANDR_LIBS = $(shell pkg-config --libs xrandr x11)
X11_LIBS = $(shell pkg-config --libs x11)
commands/helpers/list-outputs: commands/helpers/list-outputs.c
gcc -o commands/helpers/list-outputs \
commands/helpers/list-outputs.c $(XRANDR_LIBS)
commands/helpers/find-free-display: commands/helpers/find-free-display.c
gcc -o commands/helpers/find-free-display \
commands/helpers/find-free-display.c $(X11_LIBS)
x11-utils: commands/helpers/list-outputs commands/helpers/find-free-display
check-system:
$(COMMANDS)/check-system $(ARGS)
build: check-system
$(COMMANDS)/build
run: x11-utils
$(COMMANDS)/run
run-command: x11-utils
$(COMMANDS)/run-command
test: x11-utils
$(COMMANDS)/test
shell: x11-utils
@PS1="[sugar-build \W]$$ " \
$(COMMANDS)/shell
bug-report:
$(COMMANDS)/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
|