SCRIPTS = $(CURDIR)/ipfireboot.gpxe
-TARGETS = bin/gpxe.iso bin/gpxe.kpxe bin/undionly.kpxe
+TARGETS = bin/gpxe.iso bin/gpxe.kpxe bin/undionly.kpxe bin/gpxe.dsk \
+ bin/gpxe.usb bin/gpxe.lkrn
all: $(TARGETS)
make -C gpxe/src clean
$(TARGETS):
+ # Copy our configuration to the gPXE submodule
+ cp -vf config/* gpxe/src/config/local/
+
+ # Build the image
make -C gpxe/src EMBEDDED_IMAGE=$(SCRIPTS) $@
+
+ # Copy the image to bin/
-mkdir -pv $$(dirname $@)
cp -vf gpxe/src/$@ $@