Last active
October 11, 2015 17:37
-
-
Save simon-weber/3894854 to your computer and use it in GitHub Desktop.
makefile for a sparse parallel kernel source tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KERNEL_MAKE_ARGS = | |
KERNEL_DIR = ../linux-2.6.26.5 | |
# this isn't actually a list | |
DO_NOT_COPY = makefile | |
all: rm_moved_files src_copy | |
.FORCE: | |
# add stuff you've removed here | |
rm_moved_files: .FORCE | |
rm -f $(KERNEL_DIR)/mem256/mem256.h | |
src_copy: .FORCE | |
find . ! -name '$(DO_NOT_COPY)' |cpio -pduv $(KERNEL_DIR) | |
@read -p "...press enter" | |
clean: .FORCE | |
make clean --directory=$(KERNEL_DIR) | |
# you probably want another target to make in the kernel dir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment