File: Makefile

package info (click to toggle)
bubbros 1.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 32,816 kB
  • ctags: 3,136
  • sloc: python: 20,995; ansic: 2,224; java: 1,027; makefile: 100; sh: 15
file content (57 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download | duplicates (2)
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
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:
	make -C bubbob
	make -C display
	-make docs

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