]> git.ipfire.org Git - oddments/ipfire-netboot.git/blobdiff - Makefile
Migrate to iPXE.
[oddments/ipfire-netboot.git] / Makefile
index a0af61d66455e9115fb6f0c1fa9d450a78d88387..3d75cdd6498edbc153cf1a149aae9000363a5c49 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,22 +1,23 @@
 
-SCRIPTS = $(CURDIR)/ipfireboot.gpxe
+SCRIPTS = $(CURDIR)/ipfireboot.ipxe
 
-TARGETS = bin/gpxe.iso bin/gpxe.kpxe bin/undionly.kpxe bin/gpxe.dsk \
-       bin/gpxe.usb bin/gpxe.lkrn
+TARGETS = bin/ipxe.iso bin/ipxe.kpxe bin/undionly.kpxe bin/ipxe.dsk \
+       bin/ipxe.usb bin/ipxe.lkrn
 
 all: $(TARGETS)
 
 clean:
        rm -rfv $(TARGETS)
-       make -C gpxe/src clean
+       make -C ipxe/src clean veryclean
 
 $(TARGETS):
        # Copy our configuration to the gPXE submodule
-       cp -uvf config/* gpxe/src/config/local/
+       cp -vf config/* ipxe/src/config/local/
 
        # Build the image
-       make -C gpxe/src EMBEDDED_IMAGE=$(SCRIPTS) $@
+       make -C ipxe/src EMBED=$(SCRIPTS) NO_WERROR=1 \
+               ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin $@
 
        # Copy the image to bin/
        -mkdir -pv $$(dirname $@)
-       cp -vf gpxe/src/$@ $@
+       cp -vf ipxe/src/$@ $@