summaryrefslogtreecommitdiff
path: root/exports/Makefile
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-12-03 12:31:30 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-12-03 12:31:30 +0100
commitb60eadf76f92d7f8878fcbec6de7ab6ea4572a89 (patch)
treedc5f54de407721ef45f3e9860642efe43bfe6b2a /exports/Makefile
parente4744fd94236944569bfed27af80a604b7668e4b (diff)
Add initial Python wheel support
Diffstat (limited to 'exports/Makefile')
-rw-r--r--exports/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/exports/Makefile b/exports/Makefile
index 801692b..087d3a2 100644
--- a/exports/Makefile
+++ b/exports/Makefile
@@ -1,4 +1,4 @@
-.PHONY: build clean
+.PHONY: build copy-to clean
lib_prefix_linux = lib
lib_prefix_windows =
@@ -19,5 +19,8 @@ build: $(GOOS)/$(GOARCH)/$(LIB_PREFIX)eduvpn_verify$(LIB_SUFFIX)
$(GOOS)/$(GOARCH)/$(LIB_PREFIX)eduvpn_verify$(LIB_SUFFIX): exports.go ../verify.go
CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $@ -buildmode=c-shared $<
+copy-to: $(GOOS)/$(GOARCH)/$(LIB_PREFIX)eduvpn_verify$(LIB_SUFFIX)
+ install $< -Dt "$(COPY_TARGET)"
+
clean:
rm -rf ../exports/*/