hexware-kernel/Makefile

20 lines
502 B
Makefile
Raw Normal View History

2024-07-26 03:09:31 +03:00
BUILD_DIR=.build
2024-08-03 21:05:27 +03:00
build: prepare
2024-08-03 21:22:05 +03:00
cd $(BUILD_DIR)/ && make deb
2024-07-26 03:09:31 +03:00
2024-08-03 21:05:27 +03:00
prepare: | submodule
mkdir -p $(BUILD_DIR)/patches/kernel
ln -sf $$(readlink -f pve-kernel/debian) $(BUILD_DIR)/
ln -sf $$(readlink -f pve-kernel/submodules) $(BUILD_DIR)/
cp -r pve-kernel/patches/kernel/* $(BUILD_DIR)/patches/kernel
cp -r patches/* $(BUILD_DIR)/patches/kernel
cp pve-kernel/* $(BUILD_DIR)/ || true
2024-07-26 03:09:31 +03:00
2024-07-26 19:37:23 +03:00
.PHONY: submodule
submodule:
git submodule update --init --recursive
2024-07-26 03:09:31 +03:00
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)