diff --git a/makefiles/targets.mk b/makefiles/targets.mk index c4039a6..de16dbb 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -128,7 +128,7 @@ nat-libs: | libminiupnpc.a libnatpmp.a libminiupnpc.a: | sanity-checks ifeq ($(OS), Windows_NT) + [ -e vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/$@ ] || \ - PATH=".:${PATH}" "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=$(CC) build/$@ $(HANDLE_OUTPUT) + PATH=".:${PATH}" "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=$(CC) $@ $(HANDLE_OUTPUT) else + "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc build/$@ $(HANDLE_OUTPUT) endif