Skip to content

Commit

Permalink
Add a makefile target to extract the Makefile config.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Nov 20, 2023
1 parent 323aa5f commit 252d48b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
all: $(OS_LIST)

.PHONY: \
all clean distclean update-patch vars \
all clean distclean update-patch vars config \
$(foreach os,$(OS_LIST),$(os) clean-$(os) dev-clean-$(os) vars-$(os)) \
$(foreach os,$(OS_LIST),$(foreach sdk,$$(sort $$(basename $$(TARGETS-$(os)))),$(sdk) vars-$(sdk)))
$(foreach os,$(OS_LIST),$(foreach target,$$(TARGETS-$(os)),$(target) vars-$(target)))
Expand Down Expand Up @@ -642,6 +642,15 @@ vars: $(foreach os,$(OS_LIST),vars-$(os))
@echo "HOST_PYTHON: $(HOST_PYTHON)"
@echo

config:
@echo "PYTHON_VERSION=$(PYTHON_VERSION)"
@echo "PYTHON_VER=$(PYTHON_VER)"
@echo "BUILD_NUMBER=$(BUILD_NUMBER)"
@echo "BZIP2_VERSION=$(BZIP2_VERSION)"
@echo "XZ_VERSION=$(XZ_VERSION)"
@echo "OPENSSL_VERSION=$(OPENSSL_VERSION)"
@echo "LIBFFI_VERSION=$(LIBFFI_VERSION)"

# Expand cross-platform build and clean targets for each output product
clean: $(foreach os,$(OS_LIST),clean-$(os))
dev-clean: $(foreach os,$(OS_LIST),dev-clean-$(os))
Expand Down

0 comments on commit 252d48b

Please sign in to comment.