From afab67aef3d00d330c46c5e1868568d96d32d991 Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Wed, 23 Oct 2024 15:35:43 -0500 Subject: [PATCH] [NEW] Makefile: Add tools target for APK and arch-chroot --- GNUmakefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 GNUmakefile diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..4bbc50a --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,23 @@ +GIMME_MODULE := git submodule update --init --recursive +ARCH_MODULE := modules/arch-install-scripts +APK_MODULE := modules/apk-tools +APK_BIN := $(APK_MODULE)/src/apk + +ACHROOT := $(ARCH_MODULE)/arch-chroot +APK := LD_LIBRARY_PATH=$(APK_MODULE)/src $(APK_BIN) + +tools: $(ACHROOT) $(APK_BIN) + +$(ARCH_MODULE)/Makefile: .gitmodules + $(GIMME_MODULE) -- $(ARCH_MODULE) + +$(ACHROOT): $(ARCH_MODULE)/Makefile + $(MAKE) -C $(ARCH_MODULE) arch-chroot + +$(APK_MODULE)/Makefile: .gitmodules + $(GIMME_MODULE) -- $(APK_MODULE) + +$(APK_BIN): $(APK_MODULE)/Makefile + $(MAKE) -C $(APK_MODULE) + +.PHONY: tools