-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
26 lines (16 loc) · 884 Bytes
/
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
PROTOS = client_token collection2v2 color_lyrics connectivity connect context devices duration extended_metadata extension_kind login5 metadata player playlist4_external playlist_permission playplay social_connect_v2 storage-resolve media context_page context_track restrictions entity_extension_data lens-model signal-model autoplay_context_request audio_files_extension
GEN = $(subst -,_,$(PROTOS:%=%_pb2.py) $(PROTOS:%=%_pb2.pyi))
all: gen libppdecrypt.so playhelp
playhelp: -lasound -lsndfile
up: all
rsync -avhz *.py libppdecrypt.so minerva:spotify-sync
gen: $(GEN)
$(GEN): $(PROTOS:%=proto/%.proto)
protoc -I=proto --python_out=. --pyi_out=. $^
lib%.so: %.c
$(CC) $(CFLAGS) -shared $(LDFLAGS) $^ $(LDLIBS) -o $@
lib%.so: %.cc
$(CXX) $(CXXFLAGS) -shared $(LDFLAGS) $^ $(LDLIBS) -o $@
.PHONY: all up gen clean
clean:
rm -f $(GEN) libshn.so libppdecrypt.so playhelp