22 lines
568 B
Makefile
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)
|