Revision 676d55ae30ea3b688f0386f70553489f25f24d55 authored by Linus Torvalds on 20 September 2005, 03:00:41 UTC, committed by Linus Torvalds on 20 September 2005, 03:00:41 UTC
Avast, ye scurvy land-lubbers! Time to try out a new release.

Arrr!
1 parent f805fbd
Raw File
mkmakefile
#!/bin/sh
# Generates a small Makefile used in the root of the output
# directory, to allow make to be started from there.
# The Makefile also allow for more convinient build of external modules

# Usage
# $1 - Kernel src directory
# $2 - Output directory
# $3 - version
# $4 - patchlevel


cat << EOF
# Automatically generated by $0: don't edit

VERSION = $3
PATCHLEVEL = $4

KERNELSRC    := $1
KERNELOUTPUT := $2

MAKEFLAGS += --no-print-directory

all:
	\$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT)

%::
	\$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@

EOF

back to top