]> git.ipfire.org Git - oddments/ipfire-netboot.git/blob - Makefile
Makefile: Fix syntax issue
[oddments/ipfire-netboot.git] / Makefile
1
2 SCRIPTS = $(CURDIR)/ipfireboot.ipxe
3 MACHINE = $(shell uname -m)
4
5 TARGETS = bin/ipxe.iso bin/ipxe.kpxe bin/undionly.kpxe bin/ipxe.dsk \
6 bin/ipxe.usb bin/ipxe.lkrn
7
8 ifeq "$(MACHINE)" "x86_64"
9 TARGETS += bin-x86_64-efi/ipxe.efi
10 endif
11
12 .PHONY: all
13 all: $(TARGETS)
14
15 clean:
16 rm -rfv $(TARGETS)
17 make -C ipxe/src clean veryclean
18
19 $(TARGETS):
20 # Copy our configuration to the gPXE submodule
21 cp -vf config/* ipxe/src/config/local/
22
23 # Build the image
24 make -C ipxe/src EMBED=$(SCRIPTS) NO_WERROR=1 \
25 ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin $@
26
27 # Copy the image to bin/
28 -mkdir -pv $$(dirname $@)
29 cp -vf ipxe/src/$@ $@