Last active
August 29, 2015 14:27
-
-
Save taksuyu/a60ed3062685d3c578e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: MPD TEAMSPEAK clean | |
LIBMPDCLIENT_INCLUDEDIR = libmpdclient/include | |
LIBMPDCLIENT_HEADERDIR = $(LIBMPDCLIENT_INCLUDEDIR)/mpd | |
LIBMPDCLIENT_HEADERS := client.h async.h | |
LIBMPDCLIENT_OUTPUTDIR = src/mpd | |
TS3SDK_INCLUDEDIR = ts3_sdk/include | |
TS3SDK_HEADERDIR = $(TS3SDK_INCLUDEDIR)/teamspeak | |
TS3SDK_HEADERS := clientlib.h | |
TS3SDK_OUTPUTDIR = src/teamspeak | |
MPD: $(LIBMPDCLIENT_OUTPUTDIR) | |
$(foreach header, $(LIBMPDCLIENT_HEADERS), echo "Binding $(LIBMPDCLIENT_HEADERDIR)/$(header) to $(LIBMPDCLIENT_OUTPUTDIR)/$(basename $(header)).rs"; bindgen -I $(LIBMPDCLIENT_INCLUDEDIR) -o $(LIBMPDCLIENT_OUTPUTDIR)/$(basename $(header)).rs $(LIBMPDCLIENT_HEADERDIR)/$(header);) | |
$(LIBMPDCLIENT_OUTPUTDIR): | |
mkdir $(LIBMPDCLIENT_OUTPUTDIR) | |
TEAMSPEAK: $(TS3SDK_OUTPUTDIR) | |
$(foreach header, $(TS3SDK_HEADERS), echo "Binding $(TS3SDK_HEADERDIR)/$(header) to $(TS3SDK_OUTPUTDIR)/$(basename $(header)).rs"; bindgen -I $(TS3SDK_INCLUDEDIR) -o $(TS3SDK_OUTPUTDIR)/$(basename $(header)).rs $(TS3SDK_HEADERDIR)/$(header);) | |
$(TS3SDK_OUTPUTDIR): | |
mkdir $(TS3SDK_OUTPUTDIR) | |
clean: | |
rm -rf $(LIBMPDCLIENT_OUTPUTDIR) $(TS3SDK_OUTPUTDIR) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment