-
Notifications
You must be signed in to change notification settings - Fork 121
/
Makefile
33 lines (24 loc) · 748 Bytes
/
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
BINDIR = $(DESTDIR)/opt/trelby
DESKTOPDIR = $(DESTDIR)/usr/share/applications
.PHONY : clean dist deb
dist: names.txt.gz dict_en.dat.gz manual.html
./gen_linux_dist.sh
deb: dist
debuild -us -uc -b
names.txt.gz: names.txt
gzip -c names.txt > names.txt.gz
dict_en.dat.gz: dict_en.dat
gzip -c dict_en.dat > dict_en.dat.gz
manual.html: doc/*
make -C doc && mv doc/manual.html .
clean:
rm -f src/*.pyc tests/*.pyc names.txt.gz dict_en.dat.gz manual.html
dh_clean
install:
mkdir -p $(BINDIR)
rm -f src/*.pyc
cp -r src/ trelby.desktop names.txt.gz dict_en.dat.gz sample.trelby manual.html fileformat.txt LICENSE README resources $(BINDIR)
cp trelby.desktop $(DESKTOPDIR)
uninstall:
rm -f $(BINDIR)
rm -f $(DESKTOPDIR)/trelby.desktop