mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-27 22:18:21 +03:00
Makefile: Improve module target for modules with periods
This commit is contained in:
parent
7195a2c542
commit
22a1828158
29
Makefile
29
Makefile
@ -26,11 +26,16 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(module),)
|
ifneq ($(module),)
|
||||||
ifneq ($(findstring .,$(module)),)
|
ifneq ($(findstring .drv,$(module)),)
|
||||||
MODULE_SFX :=
|
MODULE_PEFILE := $(module)
|
||||||
else
|
MODULE_SOFILE := $(subst .drv,.so,$(module))
|
||||||
MODULE_SFX := .dll
|
else ifneq ($(findstring .sys,$(module)),)
|
||||||
endif
|
MODULE_PEFILE := $(module)
|
||||||
|
MODULE_SOFILE := $(subst .sys,.so,$(module))
|
||||||
|
else
|
||||||
|
MODULE_PEFILE := $(module).dll
|
||||||
|
MODULE_SOFILE := $(module).so
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(unstripped),)
|
ifneq ($(unstripped),)
|
||||||
@ -152,11 +157,15 @@ module: | $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-windows
|
|||||||
module: | $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-unix
|
module: | $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-unix
|
||||||
module: downloads
|
module: downloads
|
||||||
$(MAKE) $(MFLAGS) $(MAKEOVERRIDES) -C $(BUILD_DIR)/ $(UNSTRIPPED) module=$(module) module && \
|
$(MAKE) $(MFLAGS) $(MAKEOVERRIDES) -C $(BUILD_DIR)/ $(UNSTRIPPED) module=$(module) module && \
|
||||||
cp -f $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(module)$(MODULE_SFX)* $(BUILD_ROOT)/$(module)/lib/wine/i386-windows/ && \
|
cp -f $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(MODULE_PEFILE) $(BUILD_ROOT)/$(module)/lib/wine/i386-windows/ && \
|
||||||
cp -f $(BUILD_DIR)/obj-wine64/dlls/$(module)/$(module)$(MODULE_SFX)* $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-windows/ && \
|
cp -f $(BUILD_DIR)/obj-wine64/dlls/$(module)/$(MODULE_PEFILE) $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-windows/ && \
|
||||||
if [ -e $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(module).so ]; then \
|
if [ -e $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(MODULE_PEFILE).so ]; then \
|
||||||
cp -f $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(module).so $(BUILD_ROOT)/$(module)/lib/wine/i386-unix/ && \
|
cp -f $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(MODULE_PEFILE).so $(BUILD_ROOT)/$(module)/lib/wine/i386-unix/ && \
|
||||||
cp -f $(BUILD_DIR)/obj-wine64/dlls/$(module)/$(module).so $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-unix/; \
|
cp -f $(BUILD_DIR)/obj-wine64/dlls/$(module)/$(MODULE_PEFILE).so $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-unix/; \
|
||||||
|
fi
|
||||||
|
if [ -e $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(MODULE_SOFILE) ]; then \
|
||||||
|
cp -f $(BUILD_DIR)/obj-wine32/dlls/$(module)/$(MODULE_SOFILE) $(BUILD_ROOT)/$(module)/lib/wine/i386-unix/ && \
|
||||||
|
cp -f $(BUILD_DIR)/obj-wine64/dlls/$(module)/$(MODULE_SOFILE) $(BUILD_ROOT)/$(module)/lib64/wine/x86_64-unix/; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dxvk: | $(BUILD_ROOT)/dxvk/lib/wine/dxvk
|
dxvk: | $(BUILD_ROOT)/dxvk/lib/wine/dxvk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user