hexware-qemu/Makefile
2024-08-03 16:12:33 +03:00

22 lines
568 B
Makefile

BUILD_DIR=.build
build: prepare
cd $(BUILD_DIR)/ && make deb
prepare: | submodule
mkdir -p $(BUILD_DIR)/debian/
ln -sf $$(readlink -f pve-qemu/qemu) $(BUILD_DIR)/qemu
cp -r pve-qemu/debian/* $(BUILD_DIR)/debian
cp -r patches/* $(BUILD_DIR)/debian/patches/pve
cd $(BUILD_DIR)/debian/patches && find pve -type f | grep 'pve/9' >> series && cd -
cp pve-qemu/* $(BUILD_DIR)/ || true
.PHONY: submodule
submodule:
git submodule update --init pve-qemu
.PHONY: clean
clean:
cd pve-qemu && make distclean
git submodule deinit --all -f && cd -
rm -rf $(BUILD_DIR)