summaryrefslogtreecommitdiff
path: root/Makefile
blob: 9f8496191f455a17ba26fc030ce159c196b20f48 (plain)
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
all: libs

export PATH := $(shell realpath ./bin):$(PATH)

libs: lib ubox spman mplayer

game: bin libs
	make -C tools
	make -C game

docs:
	make -C docs

ubox:
	make -C src/ubox

spman:
	make -C src/spman

mplayer:
	make -C src/mplayer

.PHONY: clean cleanall docs libs game
clean:
	make -C src/ubox clean
	make -C src/spman clean
	make -C src/mplayer clean
	make -C game clean

lib:
	mkdir -p ./lib

bin:
	mkdir -p ./bin

cleanall: clean
	rm -rf ./bin ./lib
	make -C docs clean