Convert wslpath to makefile
This commit is contained in:
15
src/Tools/wslpath/Makefile
Normal file
15
src/Tools/wslpath/Makefile
Normal file
@@ -0,0 +1,15 @@
|
||||
include ../Common.mk
|
||||
|
||||
ARTIFACT = wslpath
|
||||
|
||||
.PHONY: $(WINDOWS_ARTIFACT) $(UNIX_ARTIFACT)
|
||||
$(WINDOWS_ARTIFACT):
|
||||
cargo $(CARGO_CMD) --$(BUILD_PROFILE) --target=$(WINDOWS_TARGET)
|
||||
$(call cp_artifact,$(WINDOWS_ARTIFACT), ../../../bin/$(ARTIFACT).exe)
|
||||
|
||||
$(UNIX_ARTIFACT):
|
||||
cargo $(CARGO_CMD) --$(BUILD_PROFILE) --target=$(UNIX_TARGET)
|
||||
$(call cp_artifact,$(UNIX_ARTIFACT), ../../../bin/$(ARTIFACT))
|
||||
|
||||
all-windows: $(WINDOWS_ARTIFACT)
|
||||
all: $(UNIX_ARTIFACT)
|
Reference in New Issue
Block a user