[NEW] Makefile: Add tools target for APK and arch-chroot
This commit is contained in:
parent
55419485cd
commit
afab67aef3
1 changed files with 23 additions and 0 deletions
23
GNUmakefile
Normal file
23
GNUmakefile
Normal file
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue