-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
82 lines (71 loc) · 1.92 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# capers - Graphical Checker Board
# Don Dez 25 12:28:57 CET 2014
#
VERSION=1.0
# install paths
DESTDIR=/usr/local
BIN_DIR=$(DESTDIR)/bin
LIB_DIR=$(DESTDIR)/lib
SHR_DIR=$(DESTDIR)/share
GMZ_DIR=$(DESTDIR)/games
# installed files
BIN=capers
LIB=cliche/dama.so cliche/simplech.so cake/cake.so
# TARGETS
all: subdirs
# subdirs
SUBDIRS=cliche cake
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS):
@for d in $(SUBDIRS); do \
(cd $$d && $(MAKE) PREFIX=$(DESTDIR)) \
done
clean:
@for d in $(SUBDIRS); do \
(cd $$d && make clean) \
done
rm -f *.o *.out *~ tags *.pdn *-stamp
find . -name "*~" -o -name "*.bak" | xargs rm -f
find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
rm -f cliche/dama.so cliche/simplech.so cake/cake.so
rm -f doc/capers.html cake/cake.dll cliche/cliche
rm -rf debian/capers
bak: clean
pydoc -w share/capers.py
mv capers.html doc
(cd .. && tar cvfz capers-beta$(BETA).tar.gz capers)
install: $(SUBDIRS)
python -m compileall share
install -d $(BIN_DIR)
install capers $(BIN_DIR)
install -d $(SHR_DIR)
install share/capers.py $(SHR_DIR)
install share/capers.pyc $(SHR_DIR)
install -m 644 share/capers.glade $(SHR_DIR)
install -m 644 share/capers.xpm $(SHR_DIR)
install -m 644 share/scene.xpm $(SHR_DIR)
install -m 644 share/small.xpm $(SHR_DIR)
install -m 644 share/stars.xpm $(SHR_DIR)
install -m 644 share/red.xpm $(SHR_DIR)
install -m 644 share/white.xpm $(SHR_DIR)
install -m 644 share/capers.svg $(SHR_DIR)
install -m 644 share/capers.png $(SHR_DIR)
install -d $(LIB_DIR)
install -s $(LIB) $(LIB_DIR)
install -m 644 cake/xbook.bin $(LIB_DIR)
install -m 644 cake/db.ini $(LIB_DIR)
install -m 644 cake/db4 $(LIB_DIR)
install -m 644 cake/db4.idx $(LIB_DIR)
install -d $(GMZ_DIR)
install -m 644 games/* $(GMZ_DIR)
.PHONY: clean bak install
profile:
./profile
poke:
GTK_MODULES=gail:atk-bridge
# DEBIAN PACKAGE
dpkg: clean
fakeroot debian/rules binary
echo rm -rf debian/capers