Update Makefile

This commit is contained in:
Gregory Lirent 2024-07-26 19:21:28 +03:00
parent 1efbb7fbd9
commit fb23f27f38
Signed by: lirent
GPG Key ID: F616BE337EFFEE77

View File

@ -11,12 +11,13 @@ qemu: qemu.build
kernel.build: kernel.prepare
cd $(BUILD_DIR)/kernel && make deb
qemu.build: kernel.prepare
qemu.build: qemu.prepare
cd $(BUILD_DIR)/qemu/qemu
meson subprojects download || meson subprojects download
cd .. && make deb
kernel.prepare: | submodule
kernel.prepare:
git submodule update --init --recursive submodules/pve-kernel
mkdir -p $(BUILD_DIR)/kernel/patches/kernel
ln -sf $$(readlink -f submodules/pve-kernel/debian) $(BUILD_DIR)/kernel/
ln -sf $$(readlink -f submodules/pve-kernel/submodules) $(BUILD_DIR)/kernel/
@ -24,7 +25,8 @@ kernel.prepare: | submodule
cp -r patches/kernel/* $(BUILD_DIR)/kernel/patches/kernel
cp submodules/pve-kernel/* $(BUILD_DIR)/kernel/ || true
qemu.prepare: | submodule
qemu.prepare:
git submodule update --init submodules/pve-qemu
mkdir -p $(BUILD_DIR)/qemu/debian/
ln -sf $$(readlink -f submodules/pve-qemu/qemu) $(BUILD_DIR)/qemu/
cp -r submodules/pve-qemu/debian/* $(BUILD_DIR)/qemu/debian
@ -32,10 +34,6 @@ qemu.prepare: | submodule
cd $(BUILD_DIR)/qemu/debian/patches && find pve -type f | grep 'pve/9' >> series && cd -
cp submodules/pve-qemu/* $(BUILD_DIR)/qemu/ || true
.PHONY: submodule
submodule:
git submodule update --init --recursive
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)