-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
41 lines (31 loc) · 1.12 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
all: godot opengl
repclient:
$(MAKE) -C common/repclient
distclean:
find . -\( -name obj -or -name bin -\) \
-exec rm -rf {} \; \
-prune
rm -f clients/godot-repclient/lib/*.d
rm -f clients/godot-repclient/lib/*.so
opengl: repclient
$(MAKE) -C clients/opengl
godot: repclient
$(MAKE) -C clients/godot-repclient
install-repclient:
mkdir -p $(DESTDIR)/include/repclient \
$(DESTDIR)/lib
cp common/repclient/obj/librepclient.a $(DESTDIR)/lib
cp common/repclient/src/*.hh $(DESTDIR)/include/repclient
install-data:
mkdir -p $(DESTDIR)/opt/aether
cp -f aether_recording.dump $(DESTDIR)/opt/aether
install-opengl: opengl install-data install-repclient
mkdir -p $(DESTDIR)/bin
cp clients/*/bin/* $(DESTDIR)/bin
install-godot: godot install-data install-repclient
mkdir -p $(DESTDIR)/opt/aether/clients
cp -r clients/godot clients/godot-repclient clients/godot-common \
$(DESTDIR)/opt/aether/clients
rm -f $(DESTDIR)/opt/aether/clients/godot-repclient/lib/*.d
install: install-opengl install-godot
.PHONY: all install repclient clients distclean opengl-only install-opengl install-godot install-data $(CLIENT_DIRS)