From b60ecf2fe5ddfe506e02093286b3931873187e91 Mon Sep 17 00:00:00 2001 From: StevenWdV Date: Fri, 4 Feb 2022 01:18:12 +0100 Subject: More Makefile cleanup, support building in folder with spaces --- wrappers/csharp/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'wrappers/csharp/Makefile') 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: -- cgit v1.2.3