fix: do note assume "make", use $(MAKE)

This commit is contained in:
Thomas Bernard 2025-02-05 02:01:22 +01:00 committed by Sam Lantinga
parent 8236e01a9f
commit 1c9643249d
1 changed files with 4 additions and 4 deletions

View File

@ -5,18 +5,18 @@ CROSS_PATH := /usr/local
ARCHITECTURES := i686-w64-mingw32 x86_64-w64-mingw32
all install:
@echo "Type \"make native\" to install 32-bit to /usr"
@echo "Type \"make cross\" to install 32-bit and 64-bit to $(CROSS_PATH)"
@echo "Type \"$(MAKE) native\" to install 32-bit to /usr"
@echo "Type \"$(MAKE) cross\" to install 32-bit and 64-bit to $(CROSS_PATH)"
native:
make install-package arch=i686-w64-mingw32 prefix=/usr
$(MAKE) install-package arch=i686-w64-mingw32 prefix=/usr
cross:
mkdir -p $(CROSS_PATH)/cmake
cp -rv cmake/* $(CROSS_PATH)/cmake
for arch in $(ARCHITECTURES); do \
mkdir -p $(CROSS_PATH)/$$arch; \
make install-package arch=$$arch prefix=$(CROSS_PATH)/$$arch; \
$(MAKE) install-package arch=$$arch prefix=$(CROSS_PATH)/$$arch; \
done
install-package: