blob: 2fbc221a82329f4034cbeda2eb405ec0267ab7e5 (
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
|
# FIXME: this Makefile should not make the tree even if there is no need to do
# it
CC = gcc
CFLAGS = -O2 -Wall
VERSION = 0.0.2
all: tree
install: tree
@echo "Installing..."
@misc/install.sh
debian-lenny-install: debian-lenny
@echo "Installing the mdm package"
@dpkg -i packages/mdm_$(VERSION)_i386.deb
debian-lenny: tree
@echo "Creating debian-lenny-tree"
@cp -r tree debian-lenny-tree
@cp -r distro/debian-lenny/DEBIAN debian-lenny-tree
@echo "Applying patches"
@cd debian-lenny-tree && \
patch -p1 < ../distro/debian-lenny/discover-devices.patch
@mkdir -p packages
@echo "Creating .deb in packages/"
@fakeroot dpkg -b debian-lenny-tree packages
ubuntu-8.04-install: ubuntu-8.04
@echo "Installing the mdm package"
@dpkg -i packages/mdm_$(VERSION)_i386.deb
ubuntu-8.04: tree
@echo "Creating ubuntu-8.04-tree"
@cp -r tree ubuntu-8.04-tree
@cp -r distro/ubuntu-8.04/DEBIAN ubuntu-8.04-tree
@echo "Applying patches"
@cd ubuntu-8.04-tree && \
patch -p1 < ../distro/ubuntu-8.04/discover-devices.patch
@mkdir -p packages
@echo "Creating .deb in packages/"
@fakeroot dpkg -b ubuntu-8.04-tree packages
tree: binaries prefix
@echo "Creating file tree in temporary folder tree/"
@misc/make-tree.sh
prefix:
@if test ! -z "$(DESTDIR)"; then \
echo "Changing prefix to $(DESTDIR)"; \
misc/change-prefix.sh $(DESTDIR); \
fi
binaries: src/read-devices.c src/write-message.c src/seat-parent-window.c
$(CC) $(CFLAGS) src/read-devices.c -o src/read-devices
$(CC) $(CFLAGS) src/write-message.c -o src/write-message `pkg-config --libs --cflags cairo x11`
$(CC) $(CFLAGS) src/seat-parent-window.c -o src/seat-parent-window `pkg-config --libs --cflags x11`
clean:
rm -f src/read-devices
rm -f src/write-message
rm -f src/seat-parent-window
rm -rf *tree
rm -rf packages
|