Skip to content

Commit

Permalink
gpxe: Make the build parallel-safe
Browse files Browse the repository at this point in the history
Make sure we don't have multiple build processes wrecking havoc in the
gpxe directory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 17, 2011
1 parent 289fca6 commit 239fed5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions gpxe/Makefile
Expand Up @@ -19,6 +19,8 @@

TARGETS = gpxelinux.0 gpxelinuxk.0

PXEMAKE = $(MAKE) -C src NO_WERROR=1

all: $(TARGETS)

tidy:
Expand All @@ -33,16 +35,17 @@ spotless: clean dist

installer:

src/bin/undionly.kkpxe: pxelinux.gpxe ../core/pxelinux.0
$(MAKE) -C src bin/undionly.kkpxe NO_WERROR=1 \
EMBEDDED_IMAGE=../pxelinux.gpxe,../../core/pxelinux.0
src/bin/blib.a:
$(PXEMAKE) bin/blib.a

src/bin/undionly.kkpxe: src/bin/blib.a pxelinux.gpxe ../core/pxelinux.0
$(PXEMAKE) bin/undionly.kkpxe EMBEDDED_IMAGE=../pxelinux.gpxe,../../core/pxelinux.0

gpxelinux.0: src/bin/undionly.kkpxe
cp -f $< $@

src/bin/undionly.kpxe: pxelinuxk.gpxe ../core/pxelinux.0
$(MAKE) -C src bin/undionly.kpxe NO_WERROR=1 \
EMBEDDED_IMAGE=../pxelinuxk.gpxe,../../core/pxelinux.0
src/bin/undionly.kpxe: src/bin/blib.a pxelinuxk.gpxe ../core/pxelinux.0
$(PXEMAKE) bin/undionly.kpxe EMBEDDED_IMAGE=../pxelinuxk.gpxe,../../core/pxelinux.0

gpxelinuxk.0: src/bin/undionly.kpxe
cp -f $< $@

0 comments on commit 239fed5

Please sign in to comment.