]> git.ipfire.org Git - oddments/ipfire-netboot.git/blame - Makefile
Copy configuration only if neccessary to avoid unneeded rebuilds.
[oddments/ipfire-netboot.git] / Makefile
CommitLineData
65b36ef7
MT
1
2SCRIPTS = $(CURDIR)/ipfireboot.gpxe
3
dbdb8773
MT
4TARGETS = bin/gpxe.iso bin/gpxe.kpxe bin/undionly.kpxe bin/gpxe.dsk \
5 bin/gpxe.usb bin/gpxe.lkrn
6c2c5968
MT
6
7all: $(TARGETS)
8
9clean:
10 rm -rfv $(TARGETS)
11 make -C gpxe/src clean
12
13$(TARGETS):
cc25416a 14 # Copy our configuration to the gPXE submodule
3554de1a 15 cp -uvf config/* gpxe/src/config/local/
cc25416a
MT
16
17 # Build the image
6c2c5968 18 make -C gpxe/src EMBEDDED_IMAGE=$(SCRIPTS) $@
cc25416a
MT
19
20 # Copy the image to bin/
6c2c5968
MT
21 -mkdir -pv $$(dirname $@)
22 cp -vf gpxe/src/$@ $@