Skip to content

Instantly share code, notes, and snippets.

@simon-weber
Last active October 11, 2015 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simon-weber/3894854 to your computer and use it in GitHub Desktop.
Save simon-weber/3894854 to your computer and use it in GitHub Desktop.
makefile for a sparse parallel kernel source tree
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