Makefile: Changed clean rule, fixed dep
This commit is contained in:
parent
923e9d39a0
commit
b5cf188c0a
9
Makefile
9
Makefile
@ -19,9 +19,14 @@ $(BUILD_DIR)/$(NAME): $(C_FILES) | $(BUILD_DIR)
|
|||||||
$(BUILD_DIR):
|
$(BUILD_DIR):
|
||||||
mkdir -p $(BUILD_DIR)
|
mkdir -p $(BUILD_DIR)
|
||||||
|
|
||||||
# Clean : clean build directory
|
# Clean : clean built executable
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
rm -rf $(BUILD_DIR)/$(NAME)
|
||||||
|
|
||||||
|
# Distclean : clean build directory
|
||||||
|
.PHONY: distclean
|
||||||
|
distclean:
|
||||||
rm -rf $(BUILD_DIR)
|
rm -rf $(BUILD_DIR)
|
||||||
|
|
||||||
rungdb: all
|
rungdb: all
|
||||||
@ -31,7 +36,7 @@ rungdb: all
|
|||||||
$(BUILD_DIR)/linux:
|
$(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
|
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
|
cp hardware/linux.config $(BUILD_DIR)/linux/.config
|
||||||
|
|
||||||
$(BUILD_DIR)/linux/vmlinux: $(BUILD_DIR)/linux/.config | $(BUILD_DIR)/linux
|
$(BUILD_DIR)/linux/vmlinux: $(BUILD_DIR)/linux/.config | $(BUILD_DIR)/linux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user