]>
Commit | Line | Data |
---|---|---|
1 | ||
2 | SCRIPTS = $(CURDIR)/ipfireboot.gpxe | |
3 | ||
4 | TARGETS = bin/gpxe.iso bin/gpxe.kpxe bin/undionly.kpxe bin/gpxe.dsk \ | |
5 | bin/gpxe.usb bin/gpxe.lkrn | |
6 | ||
7 | all: $(TARGETS) | |
8 | ||
9 | clean: | |
10 | rm -rfv $(TARGETS) | |
11 | make -C gpxe/src clean | |
12 | ||
13 | $(TARGETS): | |
14 | # Copy our configuration to the gPXE submodule | |
15 | cp -vf config/* gpxe/src/config/local/ | |
16 | ||
17 | # Build the image | |
18 | make -C gpxe/src EMBEDDED_IMAGE=$(SCRIPTS) $@ | |
19 | ||
20 | # Copy the image to bin/ | |
21 | -mkdir -pv $$(dirname $@) | |
22 | cp -vf gpxe/src/$@ $@ |