hexware-qemu/Makefile

22 lines
568 B
Makefile
Raw Permalink 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/
2024-08-03 16:12:33 +03:00
ln -sf $$(readlink -f pve-qemu/qemu) $(BUILD_DIR)/qemu
cp -r pve-qemu/debian/* $(BUILD_DIR)/debian
2024-08-03 14:39:42 +03:00
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)