-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
63 lines (51 loc) · 1.64 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
OWNER=root
GROUP=games
LIBDIR=/usr/local/lib
BINDIR=/usr/local/games
MANOWNER=root
MANGROUP=root
MANDIR=/usr/local/man
INSTALL=install
PYTHON=python
export # we export all variales to sub-makes
all:
if [ -e bubbob ]; then make -C bubbob; fi
make -C display
@echo -------------------------------------------------------------
@echo \'make\' successful.
@echo ' '
@echo ' Start the game interactively with: python BubBob.py'
@if [ -e bubbob ]; then echo ' Server only (pure command-line): python bubbob/bb.py --help'; else echo ' Only the client is installed here.'; fi
@echo ' '
@echo -------------------------------------------------------------
clean:
-rm -f `find -name "*~"`
-rm -f `find -name "*.py[co]"`
-rm -fr `find -name "build"`
make -C doc clean
cd bubbob/images && python buildcolors.py -c
rm -fr cache
sync: magma-sync codespeak-sync
magma-sync:
rsync --delete -avz -e ssh ~/games/* magma:games/x/
codespeak-sync:
rsync --delete -avz -e ssh ${HOME}/games/metaserver ${HOME}/games/common codespeak.net:games/
meta:
ssh codespeak.net python games/metaserver/metaserver.py -f
docs:
make -C doc
install-docs:
make -C doc install
# crude install
install: install-docs
# install fanciness not yet implemented :)
# make -C bubbob install
# make -C display install
$(INSTALL) -d $(LIBDIR)/bub-n-bros
cp -R . $(LIBDIR)/bub-n-bros
chown -R $(OWNER):$(GROUP) $(LIBDIR)/bub-n-bros
ln -s $(LIBDIR)/bub-n-bros/display/Client.py $(BINDIR)/bubnbros
ln -s $(LIBDIR)/bub-n-bros/bubbob/bb.py $(BINDIR)/bubnbros-server
chmod +x $(BINDIR)/bubnbros
chmod +x $(BINDIR)/bubnbros-server
$(PYTHON) $(LIBDIR)/bub-n-bros/bubbob/images/buildcolors.py