summaryrefslogtreecommitdiff
path: root/wrappers/csharp/Makefile
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-02-04 01:18:12 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-02-04 01:18:12 +0100
commitb60ecf2fe5ddfe506e02093286b3931873187e91 (patch)
treeb3804b1b95e70e96dec98cb0c2b571e0b895ebdd /wrappers/csharp/Makefile
parentbb85487e40b47d701e64085e7574cb477a431f1e (diff)
More Makefile cleanup, support building in folder with spaces
Diffstat (limited to 'wrappers/csharp/Makefile')
-rw-r--r--wrappers/csharp/Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/wrappers/csharp/Makefile b/wrappers/csharp/Makefile
index 29f9682..e120c7a 100644
--- a/wrappers/csharp/Makefile
+++ b/wrappers/csharp/Makefile
@@ -1,8 +1,10 @@
.PHONY: build pack test clean
EXPORTS_PATH ?= ../../exports
+include $(EXPORTS_PATH)/common.mk
+
# Export, see EduVpnCommon.props
-export EXPORTS_LIB_PATH ?= $(EXPORTS_PATH)/lib
+export EXPORTS_LIB_PATH
build:
dotnet publish EduVpnCommon.csproj --configuration Release
@@ -10,12 +12,7 @@ build:
pack:
dotnet pack EduVpnCommon.csproj --configuration Release
-test:
-ifneq ($(EXPORTS_PATH),)
-ifneq ($(wildcard $(EXPORTS_PATH)/Makefile),)
- $(MAKE) -C "$(EXPORTS_PATH)"
-endif
-endif
+test: .try_build_lib
dotnet test
clean: