diff options
Diffstat (limited to 'exports/Makefile')
| -rw-r--r-- | exports/Makefile | 5 |
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/*/ |
