-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·57 lines (39 loc) · 1.12 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.ONESHELL:
all: server client
DEBIAN_SRC := ../../debian
server:
echo "Building the homcc server .deb"
cp setup_server.py setup.py
python3 setup.py --command-packages=stdeb.command sdist_dsc --with-dh-systemd
echo "-- Copying service file"
# we need to copy the systemd service file to the generated package
cd deb_dist/homccd-*
cp $(DEBIAN_SRC)/homccd.service debian/service
cp $(DEBIAN_SRC)/compat debian/compat
echo "-- Building server .deb package"
dpkg-buildpackage -rfakeroot -uc -us
cd ../..
echo "-- Copying server .deb into target"
mkdir -p target
cp deb_dist/*.deb target/homccd.deb
rm setup.py
rm -rf deb_dist
client:
echo "Building the homcc client .deb"
cp setup_client.py setup.py
python3 setup.py --command-packages=stdeb.command sdist_dsc
cd deb_dist/homcc-*
cp $(DEBIAN_SRC)/compat debian/compat
echo "-- Building client .deb package"
dpkg-buildpackage -rfakeroot -uc -us
cd ../..
echo "-- Copying client .deb into target"
mkdir -p target
cp deb_dist/*.deb target/homcc.deb
rm setup.py
rm -rf deb_dist
homcc: client
homccd: server
clean:
rm -rf target/*.deb
rm -f homcc*.tar.gz