Makefile: Changed clean rule, fixed dep

master
vhaudiquet 11 months ago
parent 923e9d39a0
commit b5cf188c0a
  1. 9
      Makefile

@ -19,9 +19,14 @@ $(BUILD_DIR)/$(NAME): $(C_FILES) | $(BUILD_DIR)
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
# Clean : clean build directory
# Clean : clean built executable
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)/$(NAME)
# Distclean : clean build directory
.PHONY: distclean
distclean:
rm -rf $(BUILD_DIR)
rungdb: all
@ -31,7 +36,7 @@ rungdb: all
$(BUILD_DIR)/linux:
cd $(BUILD_DIR) && git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git --depth 1 -b v6.6
$(BUILD_DIR)/linux/.config: hardware/linux.config
$(BUILD_DIR)/linux/.config: hardware/linux.config | $(BUILD_DIR)/linux
cp hardware/linux.config $(BUILD_DIR)/linux/.config
$(BUILD_DIR)/linux/vmlinux: $(BUILD_DIR)/linux/.config | $(BUILD_DIR)/linux

Loading…
Cancel
Save