hexware-qemu/Makefile

22 lines
586 B
Makefile
Raw Normal View History

2024-08-03 14:39:42 +03:00
BUILD_DIR=.build
build: prepare
cd $(BUILD_DIR)/ && make deb
prepare: | submodule
mkdir -p $(BUILD_DIR)/debian/
ln -sf $$(readlink -f submodules/pve-qemu/qemu) $(BUILD_DIR)/
cp -r submodules/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)